Skip to content

Commit 12355f8

Browse files
authored
Add upper-roman and upper-alpha list types (#2305)
* Add upper-roman and upper-alpha list types * Create beige-files-move.md
1 parent 0370244 commit 12355f8

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.changeset/beige-files-move.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Add upper-roman and upper-alpha list types

src/markdown/lists.scss

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,26 @@
1414
}
1515
}
1616

17-
ol[type='1'] {
18-
list-style-type: decimal;
19-
}
20-
2117
ol[type='a'] {
2218
list-style-type: lower-alpha;
2319
}
2420

21+
ol[type='A'] {
22+
list-style-type: upper-alpha;
23+
}
24+
2525
ol[type='i'] {
2626
list-style-type: lower-roman;
2727
}
2828

29+
ol[type='I'] {
30+
list-style-type: upper-roman;
31+
}
32+
33+
ol[type='1'] {
34+
list-style-type: decimal;
35+
}
36+
2937
// Reset <ol> style to decimal (HTML default) specifically for AsciiDoc
3038
// <div><ol> construction (doesn't affect MarkDown)
3139
div > ol:not([type]) {

0 commit comments

Comments
 (0)