Skip to content
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

Use text-decoration-line instead of text-decoration #651

Merged
merged 1 commit into from Mar 27, 2022

Conversation

ben-rogerson
Copy link
Owner

From tailwindcss#6378:

Currently the following code would not lead to the underline being green, which is a bug imo: class="decoration-green-700 hover:underline hover:underline-offset-4"
This is because text-decoration is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style, and text-decoration-thickness so overrides any of those values (if they have been set) to initial.

Also added is the missing overline class which adds a line above the text.

@ben-rogerson ben-rogerson merged commit d6a5796 into master Mar 27, 2022
@ben-rogerson ben-rogerson deleted the feature/text-decoration-line branch March 27, 2022 02:09
@ben-rogerson ben-rogerson mentioned this pull request Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant