Skip to content

Commit

Permalink
Merge pull request #2462 from boltdesignsystem/feature/DS-748-Update-…
Browse files Browse the repository at this point in the history
…ordered-list-formats-in-Article-element

DS 748 update ordered list formats in article element
  • Loading branch information
mikemai2awesome committed Mar 29, 2022
2 parents d480467 + adc8011 commit 08aff4d
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,52 @@
First level ordered item
</li>
</ol>
<ol>
<li>
First level ordered item 1
</li>
<li>
First level ordered item 2
<ol>
<li>Second level ordered item 1</li>
<li>
Second level ordered item 2
<ol>
<li>
Third level ordered item 1
</li>
<li>
Third level ordered item 2
<ol>
<li>Fourth level ordered item 1</li>
<li>Fourth level ordered item 2
<ol>
<li>Fifth level ordered item 1</li>
<li>Fifth level ordered item 2
<ol>
<li>Sixth level ordered item 1</li>
<li>Sixth level ordered item 2</li>
<li>Sixth level ordered item 3</li>
</ol>
</li>
<li>Fifth level ordered item 3</li>
</ol>
</li>
<li>Fourth level ordered item 3</li>
</ol>
</li>
<li>Third level ordered item 3</li>
</ol>
</li>
<li>
Second level ordered item 3
</li>
</ol>
</li>
<li>
First level ordered item 3
</li>
</ol>
<details>
<summary>Summary sums up the details</summary>
<p>
Expand Down
15 changes: 15 additions & 0 deletions packages/elements/bolt-article/src/article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,21 @@ $_bolt-article-element-spacing: var(--bolt-spacing-y-medium);
}
}

ol,
ol > li > ol > li > ol > li > ol {
list-style-type: decimal;
}

ol > li > ol,
ol > li > ol > li > ol > li > ol > li > ol {
list-style-type: lower-alpha;
}

ol > li > ol > li > ol,
ol > li > ol > li > ol > li > ol > li > ol > li > ol {
list-style-type: upper-roman;
}

header,
section {
margin: 0 0 calc(#{$_bolt-article-element-spacing} * 1.5) 0;
Expand Down

0 comments on commit 08aff4d

Please sign in to comment.