Skip to content

Commit

Permalink
Merge pull request #74 from studio24/fix/ordered-list-numbering
Browse files Browse the repository at this point in the history
fix: correct numbering of ordered lists
  • Loading branch information
NicolaSaunders authored Jul 9, 2024
2 parents b7bd73f + 9ae3005 commit d18629e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions assets-src/styles/sass/30-base/_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ ol {
}
}

ol:not([start]) {
counter-reset: list-item;
}

ol li {
counter-increment: list-item;
}

ol ::marker {
content: counters(list-item, ".") ". ";
Expand Down
8 changes: 8 additions & 0 deletions web/dist/styles/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,14 @@ ol li ol {
margin-block-start: 0.75rem;
}

ol:not([start]) {
counter-reset: list-item;
}

ol li {
counter-increment: list-item;
}

ol ::marker {
content: counters(list-item, ".") ". ";
}
Expand Down
Loading

0 comments on commit d18629e

Please sign in to comment.