Skip to content

Commit

Permalink
fixing nested ol list style types
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Aug 28, 2024
1 parent e7edb46 commit 82e5901
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
9 changes: 9 additions & 0 deletions packages/common/src/scss/components/_BlockText.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@

ol {
@apply pl-12 list-decimal;
ol {
list-style-type: lower-alpha;
ol {
list-style-type: lower-roman;
ol {
list-style-type: decimal;
}
}
}
}

ul {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,14 @@ export const BaseStory = {
management: BlockStreamfieldMinimalData.body,
managementHeading: 'Management stuff',

background: BlockStreamfieldMinimalData.body,
background: [
...BlockStreamfieldMinimalData.body,
{
blockType: 'RichTextBlock',
value:
'<ol><li data-block-key="wv2pw">A list<ol><li data-block-key="mc91">A nested list should be a.<ol><li data-block-key="3p0pb">Another nested should be i.<ol><li data-block-key="22afo">Another is a number again.</li></ol></li></ol></li></ol></li></ol>'
}
],
backgroundHeading: 'Background heading',

procedures: [
Expand All @@ -173,7 +180,15 @@ export const BaseStory = {
stepsNumbering: true,
steps: [
{
blocks: BlockStreamfieldMinimalData.body
blocks: [
...BlockStreamfieldMinimalData.body,

{
blockType: 'RichTextBlock',
value:
'<ol><li data-block-key="wv2pw">A list<ol><li data-block-key="mc91">A nested list should be a.<ol><li data-block-key="3p0pb">Another nested should be i.<ol><li data-block-key="22afo">Another is a number again.</li></ol></li></ol></li></ol></li></ol>'
}
]
},
{
blocks: BlockStreamfieldMinimalData.body
Expand Down

0 comments on commit 82e5901

Please sign in to comment.