From 00f87f8988919d758ad8005ffefa5ede537c1b64 Mon Sep 17 00:00:00 2001 From: Jen Downs Date: Mon, 20 Jan 2020 20:18:18 -0600 Subject: [PATCH 1/2] docs(tabs): fix react story class name typo & prefix usage (#5103) --- packages/react/src/components/Tabs/Tabs-story.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/Tabs/Tabs-story.js b/packages/react/src/components/Tabs/Tabs-story.js index b1fe33167101..03c77460bbf7 100644 --- a/packages/react/src/components/Tabs/Tabs-story.js +++ b/packages/react/src/components/Tabs/Tabs-story.js @@ -58,7 +58,7 @@ const TabContentRenderedOnlyWhenSelected = ({ ...other }) => !selected ? ( -
+
) : (
Date: Mon, 20 Jan 2020 18:45:26 -0800 Subject: [PATCH 2/2] fix(list): left align numbers (#5100) --- .../components/src/components/list/_list.scss | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/components/src/components/list/_list.scss b/packages/components/src/components/list/_list.scss index 047323e410a8..e53a2612b05b 100644 --- a/packages/components/src/components/list/_list.scss +++ b/packages/components/src/components/list/_list.scss @@ -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 {