-
Notifications
You must be signed in to change notification settings - Fork 2
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
[#69] Tailwind 4 upgrade #81
Changes from all commits
97193b8
9a7b863
1a5e2b6
b77e20b
9a22d11
f447ba1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,9 +65,14 @@ export default plugin(({ addComponents }) => { | |
}, | ||
}, | ||
// required field styles | ||
'&[data-required] label .field-label::after': { | ||
'@apply content-["*"] text-red-600 align-super text-xs ml-2 font-medium dark:text-red-300': | ||
{}, | ||
'&[data-required] label .field-label': { | ||
'&::after': { | ||
'@apply content-["*"] text-red-600 align-super text-xs ml-2 font-medium': | ||
{}, | ||
}, | ||
'.dark &::after': { | ||
'@apply text-red-300': {}, | ||
}, | ||
Comment on lines
+68
to
+75
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nesting TW 4 docs recommend this setting to restore the TW 3 "selector" strategy for dark mode.
However, I don't think TW3 used :where().
|
||
}, | ||
'&[data-required="long"] label .field-label::after': { | ||
'@apply content-["*Required"]': {}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These keyframes weren't ending up in the final CSS and I was also getting some Typescript errors.
I don't think nesting keyframes within a class is technically valid. Seems like TW4 must be a bit more strict.
The issue was resolved by moving them outside of
.dialog
and making the opacity values strings.