Skip to content

Conversation

@philipp-spiess
Copy link
Member

Resolves #16170

This PR fixes an issue where the previously opted-out escaping of the first argument for the var(…) function was not unescaped at all. This was introduced in #14776 where the intention was to not require escaping of underscores in the var function (e.g. ml-[var(--spacing-1_5)]). However, I do think it still makes sense to unescape an eventually escaped underline for consistency.

Test plan

The example from #1670 now parses as expected:

Screenshot 2025-02-03 at 13 51 35
@philipp-spiess philipp-spiess requested a review from a team as a code owner February 3, 2025 12:51
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
@philipp-spiess philipp-spiess merged commit 9fd6766 into main Feb 4, 2025
5 checks passed
@philipp-spiess philipp-spiess deleted the fix/var-unescape-underlines branch February 4, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants