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

Update TW to v3.4.1 and nvmrc to 20 #942

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Update TW to v3.4.1 and nvmrc to 20 #942

merged 1 commit into from
Jan 11, 2024

Conversation

yvonnetangsu
Copy link
Member

@yvonnetangsu yvonnetangsu commented Jan 10, 2024

READY FOR REVIEW

Summary

  • Update nvmrc to 20
  • Update TW to 3.4.1
  • Other misc updates

Needed By (Date)

  • 🤷🏼‍♀️

Urgency

  • Not super urgent

Steps to Test

  1. Look at code to see what's changed
  2. Look at preview and see that it's still working
  3. Look at the Campaign preview in this PR that's using this branch of decanter and see that it works ok
    Tailwind 3.4.1 ood-giving-campaign#189
    https://deploy-preview-189--giving-campaign.netlify.app/

@yvonnetangsu yvonnetangsu added the patch Releases a patch tag label Jan 10, 2024
Comment on lines -31 to -38
/**
* 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;
Copy link
Member Author

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

Comment on lines +60 to +64
/**
* 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.
*/
Copy link
Member Author

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.

Copy link
Member

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

Copy link
Member Author

@yvonnetangsu yvonnetangsu Jan 11, 2024

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 * 😂

Screenshot 2024-01-11 at 10 01 50 AM

Copy link
Member

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.

Copy link
Member Author

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 * 😅

@yvonnetangsu
Copy link
Member Author

@sherakama I'm testing this branch in this Campaign preview here:
https://deploy-preview-189--giving-campaign.netlify.app/

@yvonnetangsu yvonnetangsu added minor Releases a minor tag and removed patch Releases a patch tag labels Jan 11, 2024
@yvonnetangsu yvonnetangsu requested review from iamrentman and rebeccahongsf and removed request for iamrentman January 11, 2024 17:53
@yvonnetangsu
Copy link
Member Author

Tagging @rebeccahongsf as a FYI. TW 3.4.0 has some new features
https://tailwindcss.com/blog/tailwindcss-v3-4

Copy link
Member

@sherakama sherakama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG2M

@yvonnetangsu
Copy link
Member Author

Ok merging. Thanks for the review!

@yvonnetangsu yvonnetangsu merged commit c51d6e3 into main Jan 11, 2024
5 checks passed
@yvonnetangsu yvonnetangsu deleted the tw-3.4.1 branch January 11, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Releases a minor tag size/xs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants