From 101be065cd29bc81196ee90e0d05010afd2f9288 Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Wed, 5 Feb 2025 15:39:22 +0100 Subject: [PATCH] feat: Improve readability of nested lists 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 ``` --- src/components/docPage/type.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/docPage/type.scss b/src/components/docPage/type.scss index 0d6133c579857..00bd464f83dcc 100644 --- a/src/components/docPage/type.scss +++ b/src/components/docPage/type.scss @@ -166,6 +166,14 @@ margin-top: 0; } + ol ol { + list-style-type: lower-alpha; + } + + ol ol ol { + list-style-type: lower-roman; + } + table { border-collapse: collapse; width: 100%;