Skip to content

Conversation

@megatronCGN
Copy link
Member

Move basic list-styling higher up in the cascade. Remove padding on lists with role-attributes, according to the description that all default styling should be removed.

Move basic list-styling higher up in the cascade. Remove padding on lists with `role`-attributes, according to the description that all default styling should be removed.
padding-left: 0;

&:not([class]) {
&:where:not([class]) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

ul[role='list'],
ol[role='list'] {
list-style: none;
padding-left: 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This addition would address situations where we add role="list" to a list to remove default styles (but not semantics) and add no class for custom styling, correct?

I did not anticipate that. It seems niche to me, but if you have a valid use case, you have a valid use case 😉 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants