Skip to content

List Tag Rendering Incorrectly With Bullet #52

Answered by michaeltaranto
rtkaaho asked this question in General
Discussion options

You must be logged in to vote

Hey 👋
Unfortunately, there are some tradeoffs with this technique, the main one being that the text node should be self contained and not have mixed styles with its parent. Unfortunately the li tag injects a marker pseudo element who's layout we cannot control.

In our design system we have opted for custom bullets, which I acknowledge adds complexity, but if you're trimming the space on your list items, you're likely opting into managing this complexity for your consumers anyway.

Also trimming the white space on the list items means having to manage the space with your ul/ol element, which you will need to handle carefully to not introduce additional elements in the DOM between the list a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by michaeltaranto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #51 on October 12, 2021 22:19.