Skip to content

Commit 925b175

Browse files
feat: Improve readability of nested lists (#12593)
Previously, any nested lists would be rendered as follows: ``` 1. Main item 1. Sub-item 1. Sub-sub-item 2. Another sub-sub-item 2. Another sub-item 2. Another main item ``` Reading the above nested list is difficult, since the reader needs to keep track of the indentation in order to tell whether an item is a main item, sub-item, or sub-sub-item. This PR changes the numbering format for sub-items and sub-sub-items to make the item types clearer. The example above would now render as: ``` 1. Main item a. Sub-item i. Sub-sub-item ii. Another sub-sub-item b. Another sub-item 2. Another main item ```
1 parent 159d468 commit 925b175

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/components/docPage/type.scss

+8
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,14 @@
166166
margin-top: 0;
167167
}
168168

169+
ol ol {
170+
list-style-type: lower-alpha;
171+
}
172+
173+
ol ol ol {
174+
list-style-type: lower-roman;
175+
}
176+
169177
table {
170178
border-collapse: collapse;
171179
width: 100%;

0 commit comments

Comments
 (0)