-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Disable unnecessary variants for text style plugins #702
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
Conversation
|
Isn't it common enough to italicize/unitalicize text on hover? |
|
Is it? I've never done it but if others do it often I'm cool with re-enabling. |
|
I’ve seen it, but not often no, and I guess if you don’t include it for |
|
We do include it for font-weight 😬 |
|
Oh haha. Hmm, what is it, 10 new classes? |
|
I think 20. It pains me to add |
|
Gonna merge as-is for now, can re-enable it in 1.0.1 if necessary but 1.0 is my last chance to disable 😄 |
|
I've worked on some projects where the designers wanted to italicize links on hover. Imho it's a bad idea because things can get jumpy so I always try to use absolutely-positioned pseudo-elements for that, which translates to me never needing these utilities. Did anyone ever needed this ( |
The only reason I decided to keep that one enabled is because I think the recommendation is to use subpixel-antialiasing on light backgrounds, and regular antialiasing on dark backgrounds: http://usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/ So it seems reasonable to keep the responsive versions in case you change the background/text color responsively and need to adjust the font smoothing to suit 👍🏻 |
|
Yeah, I remember you mentioned that on Discord. Thanks for the link! |
In 0.x, a lot of different utilities were grouped under the
textStylemodule and so if a variant needed to be enabled for any of those utilities, it had to be enabled for all of them.Now that the
textStylemodule has been split intofontStyle,textTransform,textDecoration, andfontSmoothing, we can control which variants to generate at a finer level.This PR changes things so that only the
textDecorationplugin hashoverandfocusvariants enabled by default, as theunderlineandno-underlineclasses were the primary motivation for enabling those variants to begin with.