-
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
Conversation
/** | ||
* Use this directive to control where Tailwind injects the responsive | ||
* variations of each utility. | ||
* | ||
* If omitted, Tailwind will append these classes to the very end of | ||
* your stylesheet by default. | ||
*/ | ||
@tailwind variants; |
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
/** | ||
* 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. | ||
*/ |
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.
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 comment
The 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 > *
which scopes that at one level
I'd have to test to confirm but using the wildcard selector *
without the direct child selector opens up the selectivity scope to all the levels
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.
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 comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I just read tailwindlabs/tailwindcss#12551
*
is a direct child selector 🤦
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 comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it could be a bit confusing because of the * 😅
@sherakama I'm testing this branch in this Campaign preview here: |
Tagging @rebeccahongsf as a FYI. TW 3.4.0 has some new features |
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.
LG2M
Ok merging. Thanks for the review! |
READY FOR REVIEW
Summary
Needed By (Date)
Urgency
Steps to Test
Tailwind 3.4.1 ood-giving-campaign#189
https://deploy-preview-189--giving-campaign.netlify.app/