-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
fix: created plugin to prefix class names to prevent styling conflicts #235
fix: created plugin to prefix class names to prevent styling conflicts #235
Conversation
Can I get some suggestions @diivi @Anush008 @bdougie? There are 4 points I would like to discuss.
There are probably other cases too but this is what came to my mind while working on it so far. |
I don't have the context for this PR and I don't see an issue linked to this, so I'm curious why we need to prefix things to avoid styling conflicts? Tailwind classes wouldn't have conflicts, but if non-Tailwind ones did, you could use CSS modules or a similar styling solution. But if we're using Tailwind, I'm a bit confused as to why this is an issue? |
Please don't leave the "Related Issues/Documents" field empty π . Here's the issue btw - #89 |
This is fine for me especially if this is happening in production only. I'd suggestion a prefix
This is fine, we are just trying to avoid collisions with github. So if we cover most classes, we should be fine, but we won't know until we implement it and QA
Same with above, let's see if this solves the case in the notifications #89 panel and go on from there
Same as above
Same
No need to solve all cases since the scope is the one case that has been reported |
Sounds good. How about content scripts since those have a mixture of GitHub and tailwind classes? How would we differentiate between them? |
There are 2 issues that I've ran into @bdougie @diivi @Anush008.
|
We started this exploration due to some specific conflicts. Is it possible to prefix manually only in areas we are aware of the conflicts? i.e. #89 (comment) |
@bdougie Another option we could explore is having multiple tailwind configs since we won't have to deal with the edge cases with prefixing every tailwind class and we would have to prefix the content scripts manually anyways. So the popup could have the same tailwind config and the content scripts could have another tailwind config with the prefix set. |
2e529d2
to
7db291e
Compare
Description
What type of PR is this? (check all applicable)
Related Tickets & Documents
Fixes #89
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?