Skip to content

Commit

Permalink
Merge branch 'master' into text-input-height-variations
Browse files Browse the repository at this point in the history
  • Loading branch information
asudoh authored Jan 21, 2020
2 parents 4ec8c07 + d36f6ba commit c1fe65a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions packages/components/src/components/list/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,21 @@
margin-top: 0;
}

.#{$prefix}--list--ordered {
list-style-type: decimal;
.#{$prefix}--list--ordered:not(.#{$prefix}--list--nested) {
counter-reset: item;
}

.#{$prefix}--list--ordered:not(.#{$prefix}--list--nested)
> .#{$prefix}--list__item {
position: relative;
}

.#{$prefix}--list--ordered:not(.#{$prefix}--list--nested)
> .#{$prefix}--list__item::before {
content: counter(item) '.';
counter-increment: item;
position: absolute;
left: rem(-24px);
}

.#{$prefix}--list--ordered.#{$prefix}--list--nested {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Tabs/Tabs-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const TabContentRenderedOnlyWhenSelected = ({
...other
}) =>
!selected ? (
<div {...other} ciassName="bx--visually-hidden" />
<div {...other} className={`${prefix}--visually-hidden`} />
) : (
<div
{...other}
Expand Down

0 comments on commit c1fe65a

Please sign in to comment.