Update docusaurus and use v4 future#3195
Conversation
👷 Deploy request for babel-next pending review.Visit the deploys page to approve it
|
✅ Deploy Preview for babel ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
| @@ -1 +1 @@ | |||
| defaults | |||
| defaults and supports css-cascade-layers | |||
There was a problem hiding this comment.
The default browser target will convert the default CSS to :root:not(#\#):not(#\#) {...}, which means that custom CSS cannot override them without modification.
@slorber This might be a common issue with useCssCascadeLayers, and you might be interested in it. :)
There was a problem hiding this comment.
Do we already have latest caniuse-lite in the lock file? Chances are defaults already supports css-cascade-layers but the definition of defaults in the lock file lags behind.
There was a problem hiding this comment.
You're right! After my update, defaults is now supported.
There was a problem hiding this comment.
:not(#\#) is a way for postCSS to downgrade CSS cascade layers to "older CSS". Technically each :not(#\#) helps increase the selector specificity.
CSS Cascade layers are well supported now, however if you need to downgrade and keep your CSS overrides, I'd recommend adding a layer to your site's custom CSS so that :not(#\#) is also added to your own CSS so that it gets a higher specificity.
But yeah, if it's in defaults it's just simpler to upgrade.
|
Hey 👋 TLDR: I think you should break this PR into multiple smaller ones that focus on a single thing at a time. This makes it easier to review/merge, and it helps me helps you if you need. v3.10 doesn't ship any breaking change, it's only if you use our v4 "future flags" that you opt in into future breaking changes purposefully. One strategy could be to opt in to each breaking change in an individual PR that focuses on a single change at a time. Note that you do not need to migrate all your files to My suggestion would be:
Optional:
|
This PR can be reviewed commit by commit.
This PR used codex to help me perform batch replacements.