-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure
--inset-ring=*
and --inset-shadow-*
variables are ignored …
…by `inset-*` utilities (#14855) This PR fixes a issue where utilities like `inset-x-*`, `left-*`, `top-*`, etc. mistakenly pull values from the `--inset-ring-*` and `--inset-shadow-*` theme namespaces. For example, the class `left-shadow-sm` currently generates this CSS: ```css .left-shadow-sm { left: var( --inset-shadow-sm, inset 0 1px 1px rgb(0 0 0 / 0.05) ); } ``` This happens because the `--inset-ring-*` and `--inset-shadow-*` namespaces collide with the `--inset-*` namespace. We were already handling this manually for just the `inset-*` utilities but didn't realize we needed to handle it for every related utility, so this PR fixes that. This also fixes an issue where IntelliSense would suggest classes like `inset-x-shadow-sm` when they shouldn't actually exist. To do this we've created this new concept of `ignoredThemeKeys` in the relevant APIs to make sure these are filtered out at the source. --------- Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
- Loading branch information
1 parent
63b321b
commit cf77420
Showing
5 changed files
with
461 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.