DEV Community

Discussion on: A Modern CSS Reset

kyleoliveiro profile image
Kyle Oliveiro

I'm not sure if it's a good idea to reset styles for only ul and ol elements that have a class. I'm guessing the rationale behind this decision was to remove default styling for elements that are semantically lists.

But consider the following case where the user is expecting default styling on a ul element, plus an added purple style for the text:

<ul class="text--purple">

In this case, the default margin and padding would be removed and AFAIK there isn't a way to restore the default UA styling.

hankchizljaw profile image
Andy Bell

Yeh that's valid, but I've found the styles as above more useful. It's probably better for you to create a fork in this instance.