Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Style nested `<ul>`s with circles instead of normal bullets #10358
Discovered while working on #10303 that we style nested unordered lists with a normal bullet, instead of
In the Chrome user agent styles, for instance, you can see the default is overridden:
This adds a rule to the editor stylesheets to handle nested styles.
Here's the before:
And here's the after:
One small implementation note: I've removed a
I expect this to be slightly controversial, but this is intentional to avoid a selector specificity issue. Basically,
requested review from
Oct 5, 2018
This makes a lot more sense to me code-wise. The editor styles specifically
:not() targeting a single block's styles rather than that block managing it seems hacky/inelegant. I like this solution way more.
I haven't tested this locally but I prefer this approach.