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

Better intersection of class attributes #31

Closed
gregoribic opened this issue Apr 14, 2022 · 5 comments
Closed

Better intersection of class attributes #31

gregoribic opened this issue Apr 14, 2022 · 5 comments

Comments

@gregoribic
Copy link

I would be nice that components filter out class attributes that are custom assigned.
Overriding classes does not always work.
Function for assigning class for example to <.td> element, could check if user assigned px-2 and therefore not assigning px-6.

@mplatts
Copy link
Contributor

mplatts commented Apr 14, 2022

You should be able to go !px-2 - see https://tailwindcss.com/docs/configuration#important-modifier

@mplatts
Copy link
Contributor

mplatts commented Apr 14, 2022

But agree in future we could have some kind of function that replaces existing classes so we don't have to set !important

@gregoribic
Copy link
Author

Thew issue is that using ! does not work in all cases. Sometimes yes sometimes no.

@mplatts
Copy link
Contributor

mplatts commented Apr 15, 2022

Oh right in that case yeah we should prioritise that

@mplatts
Copy link
Contributor

mplatts commented May 1, 2022

Replaced by this issue: #35

@mplatts mplatts closed this as completed May 1, 2022
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

No branches or pull requests

2 participants