-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix plugins with nested rules refering to the utility name (#16539)
Closes tailwindlabs/tailwindcss-typography#383 This PR fixes an issue that happened when JavaScript plugins create a nested rule that references to the utility name. The previous behavior looked like this:  I was able to come up with an approach that can be fixed entirely in the compat layer by leveraging the `raw` field on the candidate. ## Test plan - Added unit tests - Verified with the reproduction from tailwindlabs/tailwindcss-typography#383: <img width="1458" alt="Screenshot 2025-02-14 at 13 21 22" src="https://github.com/user-attachments/assets/50544abc-e98f-48cd-b78c-ad7697387dd8" />
- Loading branch information
1 parent
a1e083a
commit 7d51e38
Showing
3 changed files
with
156 additions
and
1 deletion.
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