Skip to content

Commit 515a62f

Browse files
authored
[Layout foundations] Fix listReset class from not applying to ordered lists (#8600)
1 parent c68c14d commit 515a62f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/smart-candles-dress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/polaris': minor
3+
---
4+
5+
Fixed list reset class from not applying to ordered lists

polaris-react/src/components/AlphaStack/AlphaStack.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const AlphaStack = ({
4545
}: AlphaStackProps) => {
4646
const className = classNames(
4747
styles.AlphaStack,
48-
as === 'ul' && styles.listReset,
48+
(as === 'ul' || as === 'ol') && styles.listReset,
4949
as === 'fieldset' && styles.fieldsetReset,
5050
);
5151

0 commit comments

Comments
 (0)