-
Notifications
You must be signed in to change notification settings - Fork 294
Ordered lists start from 2 #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As you can see in the snapshot from here, the first element of an ordered list is marked as "2." when it should be "1." |
Interesting, will try different browser/os combo and report back |
What I learned so far:
Also, the issue is fixed in chrome by adding |
I can reproduce on Ubuntu. Bug appears in Chromium but not Firefox. Tailwind Typography version 0.4.1 The counter-reset fix worked for me. Thanks @simonacca ! |
HOWEVER, counter-reset causes the list to start at 0 on Safari.... |
+1, same here. Device: Vivo 1808 Build/O11019 |
Hey! We recently did a major update to the typography plugin, and one of the bigger changes was simplifying the ordered list implementation. We're no longer using pseudo elements to render the counter, but instead are just relying on the default browser list marker implementation. Before: tailwindcss-typography/src/styles.js Lines 60 to 65 in 5bb0e07
After: tailwindcss-typography/src/styles.js Lines 1305 to 1307 in 94b5a5b
I suspect that this will resolve this issue, so I'm going to close this. Please report back if that's not the case 👍 |
What version of @tailwindcss/typography are you using?
v0.4.0
What version of Node.js are you using?
none
What browser are you using?
Google Chrome 85.0.4183.121
What operating system are you using?
Ubuntu 20.10
Reproduction repository
https://www.youtube.com/watch?v=-6BsiVyC1kM
The text was updated successfully, but these errors were encountered: