Skip to content
Discussion options

You must be logged in to vote

Hey!

This is expected behavior because the default display value of an <li> is list-item, but you are explicitly overriding it to be display: flex instead, which loses the list-item behavior.

If you want to keep the list bullets then you either have to:

  • re-recreate the bullets manually
  • or keep the <li> and use nested elements that have flex behavior

In the last case, if you then use inline-flex instead of flex everything stays inline.

Some examples: https://play.tailwindcss.com/CrKIdxA9D0

Also don't use block on the li because that would also override the default display behavior again.

Hope this helps!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by markgarrigan
Comment options

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

This discussion was converted from issue #18248 on June 07, 2025 11:27.