List Tag Rendering Incorrectly With Bullet #52
-
Hi there! Working through adding capsize to the text component in our design system and am running into an issue where capsized text in an ReproductionYou can easily reproduce it on https://seek-oss.github.io/capsize/ by changing the tag of the capsized text to an |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey 👋 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 Hope that helps. |
Beta Was this translation helpful? Give feedback.
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 amarker
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…