Skip to content

Commit 1edd00b

Browse files
mrp-78majidsajadi
authored andcommitted
fix: resolve comments
1 parent 982c12f commit 1edd00b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/pinwheel/pinwheel.stories.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ interface ArgTypes {}
1818
const items = ['عنوان ۱', 'عنوان ۲', 'عنوان ۳', 'عنوان ۴', 'عنوان ۵', 'عنوان ۶', 'عنوان ۷', 'عنوان ۸', 'عنوان ۹']
1919

2020
const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
21-
<div>
22-
<tap-pinwheel .items=${items}></tap-pinwheel>
23-
</div>
21+
<tap-pinwheel .items=${items}></tap-pinwheel>
2422
`;
2523

2624
export const Pinwheel = Template.bind({});

src/pinwheel/pinwheel.style.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default css`
2121
/* FIXME: we dont have sizing tokens yet */
2222
height: 48px;
2323
font: inherit;
24-
font-family: var(--tap-font-family, var(--tap-sys-font-family)), serif;
24+
font-family: var(--tap-font-family, var(--tap-sys-font-family));
2525
line-height: var(--tap-pinwheel-typography-body-md-height, var(--tap-sys-typography-body-md-height));
2626
font-size: var(--tap-pinwheel-typography-body-md-size, var(--tap-sys-typography-body-md-size));
2727
font-weight: var(--tap-pinwheel-typography-body-md-weight, var(--tap-sys-typography-body-md-weight));

src/pinwheel/pinwheel.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ export class Pinwheel extends LitElement {
5252

5353
private renderItem = (item: string, index: number) => {
5454
return html`<div
55+
part="pinwheel-item"
5556
class=${this.selectedIndex === index ? 'active': null}
56-
@click='${() => {this.handleClickItem(index)}}'
57+
@click='${() => this.handleClickItem(index)}'
5758
>
5859
${item}
5960
</div>`

0 commit comments

Comments
 (0)