web-illinois / illinois_framework_theme

An Illinois branded Drupal theme based off of the bootstrap4 theme.
5 stars 1 forks source link

Create a variable style ordered list #467

Closed nbaxley-uiuc closed 2 years ago

nbaxley-uiuc commented 2 years ago

When nesting ordered list, the user should have the option to alter the numbering style between decimal and alpha. This is not straightforward in CSS, but using a class like the one below will achieve it. We can use the Styles configuration dropdown to apply these and it seems to be applied to the top level OL only properly.

ol.variable-ol {
    list-style: decimal;
}
ol.variable-ol ol {
    list-style: lower-alpha; 
}
ol.variable-ol ol ol {
    list-style: lower-roman;
}
ol.variable-ol ol ol ol {
    list-style: decimal; 
}
github-actions[bot] commented 2 years ago

Branch wrg20/issue-467-create-a-variable-style-ordered-list created!

nbaxley-uiuc commented 2 years ago

Expected formatting is shown below image

github-actions[bot] commented 2 years ago

Branch magjarvis/issue-467-create-a-variable-style-ordered-list created!

nbaxley-uiuc commented 2 years ago

@magjarvis I think I have the CSS correct for this, but it needs testing and integrating into the theme as well as getting the class integrated into the CK Editor for Basic HTML

nbaxley-uiuc commented 2 years ago

This should be solved by #535

nbaxley-uiuc commented 2 years ago

Fixed with #535

mwllr commented 2 years ago

List formatting was added to components 2.5 released in December 2021. https://cdn.toolkit.illinois.edu/2.5/examples/stylesheets/typography/lists/index.html @nbaxley-uiuc