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

Escape selectors containing forward slashes #816

Merged

Conversation

ben-rogerson
Copy link
Owner

This PR adds support for forward slashes within certain classes:

tw`group-hover/link:bg-black`

// ↓ ↓ ↓ ↓ ↓ ↓

({
    ".group\\/link:hover &": { // < Added escaping to class name
      "--tw-bg-opacity": "1",
      "backgroundColor": "rgb(0 0 0 / var(--tw-bg-opacity))"
    }
});

Closes #808

@andymerskin
Copy link

Excited for this — been wondering why this hadn't been working! Thanks for the fix! :)

@ben-rogerson ben-rogerson merged commit 45ff6ad into master Jul 23, 2023
@ben-rogerson ben-rogerson deleted the bugfix/escape-selectors-containing-forward-slashes branch July 23, 2023 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

group-x classes containing / aren't working correctly
2 participants