Skip to content

Commit

Permalink
Add upper-roman and upper-alpha list types (#2305)
Browse files Browse the repository at this point in the history
* Add upper-roman and upper-alpha list types

* Create beige-files-move.md
  • Loading branch information
vdepizzol authored Nov 16, 2022
1 parent 0370244 commit 12355f8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-files-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Add upper-roman and upper-alpha list types
16 changes: 12 additions & 4 deletions src/markdown/lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,26 @@
}
}

ol[type='1'] {
list-style-type: decimal;
}

ol[type='a'] {
list-style-type: lower-alpha;
}

ol[type='A'] {
list-style-type: upper-alpha;
}

ol[type='i'] {
list-style-type: lower-roman;
}

ol[type='I'] {
list-style-type: upper-roman;
}

ol[type='1'] {
list-style-type: decimal;
}

// Reset <ol> style to decimal (HTML default) specifically for AsciiDoc
// <div><ol> construction (doesn't affect MarkDown)
div > ol:not([type]) {
Expand Down

0 comments on commit 12355f8

Please sign in to comment.