-
Notifications
You must be signed in to change notification settings - Fork 9
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
Update TW to v3.4.1 and nvmrc to 20 #942
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
18 | ||
20 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,11 @@ module.exports = { | |
':merge(.group):focus-within &', | ||
':merge(.group):hover &', | ||
]); | ||
/** | ||
* Note: in TW v3.4.0, the *: variant is added for targeting direct children | ||
* https://github.com/tailwindlabs/tailwindcss/pull/12551 | ||
* Leaving these in for now for backwards compatibility. | ||
*/ | ||
Comment on lines
+60
to
+64
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. Leaving in our current custom children: variant because we used that on every site. 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. Yeah, and they are different. Children use the direct child selector to select any immediate element 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. Oh don't worry @sherakama , Tailwind actually make the *: variant only select direct children so it's actually equivalent to > *, same as our children: variant. Some people were commenting on whether it's good idea for them to pick the * π 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. Oh, I just read tailwindlabs/tailwindcss#12551
That difference isn't obvious with this syntax but it makes sense after reading the thread. 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. Yeah it could be a bit confusing because of the * π |
||
addVariant('children', '& > *'); | ||
addVariant('children-hover', '& > *:hover'); | ||
addVariant('children-focus', '& > *:focus'); | ||
|
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.
Removing this one because we no longer need this line
https://tailwindcss.com/docs/installation