-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove list-style for govspeak ordered lists
This removes setting list-style on ordered lists to instead allow the use of the type attribute on an ordered list to specify the list-style. I couldn't determine why this style was needed. Current browsers style this as list-style decimal by default and I can't find any code this undoes. It could be that previously this was to undo an earlier override, but it would be very unconventional for current GOV.UK to style an `ol` without a class so this seems unlikely. The motivation for making this change is to support some niche behaviour used by publishers that will become disabled. Currently some advanced published have managed to published ordered lists that are alphabetical or roman numeral prefixed by use of an `ol` element with a style attribute. This will not be available with the role out of the GOV.UK Content Security Policy which forbids unsafe inline styles [1]. [1]: alphagov/govuk_app_config#291
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters