Skip to content

Commit

Permalink
specificity issue no-marker option
Browse files Browse the repository at this point in the history
  • Loading branch information
dlnr committed May 7, 2024
1 parent fe72348 commit e360c1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/css/src/components/ordered-list/ordered-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
}
}

.ams-ordered-list--small {
.ams-ordered-list--small:not(.ams-ordered-list--no-markers) {
font-size: var(--ams-ordered-list-small-font-size);
line-height: var(--ams-ordered-list-small-line-height);
}

.ams-ordered-list--large {
.ams-ordered-list--large:not(.ams-ordered-list--no-markers) {
font-size: var(--ams-ordered-list-large-font-size);
line-height: var(--ams-ordered-list-large-line-height);
}
Expand Down
7 changes: 7 additions & 0 deletions storybook/src/components/OrderedList/OrderedList.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ const meta = {
argTypes: {
reversed: { control: 'boolean' },
start: { control: 'number' },
size: {
control: {
type: 'radio',
labels: { small: 'small', undefined: 'medium', large: 'large' },
},
options: ['small', undefined, 'large'],
},
},
decorators: [inverseColorDecorator],
} satisfies Meta<typeof OrderedList>
Expand Down

0 comments on commit e360c1e

Please sign in to comment.