-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Theme: Revert three theme commits that are causing styling issues #1983
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
Would be amazing if @jzaefferer could help a little here :-D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still feel a little sick when thinking about reverting fixes for bugs but I see that we definitely need to fix the unusable themes.
At least we should create a follow up ticket with all information we have. I can do this after my vacation. Maybe we'll find a solution sometime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mhhh, I've tested this a little more and I see those issues: 1) a little glitch with the icon in radio / checkboxes (1.13 only) and 2) a fully broken checkbox in ui lightness theme (1.12 only) and 3) an ugly design glitch with radios in ui lightness theme (1.12 only)
Don't we get the broken checkbox in UI Lightness like in 1.12 when applying this PR?
Cool, I'll leave that for you to create then. I did spend some time trying to fix the issues without reverting the changes but those commit are pretty substantial; they drastically change the ideas around which colors to use when and I wasn't able to see a quick way to resolve the issues. It might be that way bigger changes would be necessary, maybe even including changes in theme colors. It's possible there's an easier & simpler way to fix the affected issues; that would be preferable.
Is that the visible dash that should be hidden? I'll prepare a separate PR for that one.
What's the glitch with radios?
We do. The last sentence of the PR description captures my thoughts around it:
|
Maybe it's an option to add a workaround (e.g. some exrta CSS) to the ui-lighness theme to fix the 1.12 checkbox issue? |
Themes are produced from https://github.com/jquery/jquery-ui/blob/main/themes/base/theme.css, mostly by changing colors to variables declared in comments like All of the themes should be possible to generate using the Themeroller just by entering proper variable values; any special rule would violate such a constraint. |
I submitted a fix for visible dashes in blank icons in #1987. |
@fnagel the main issue is that two of the three mentioned commits change icon background styles to use The second issue is the new |
I already assumed it's not really possible to do this easily and you're right: it would not be a clean solution. More like a hack :-/ |
This looks pretty good to me. Any easy way to test this locally with another theme? |
There's a way, albeit a bit hacky. First, you need to make sure the commit you want to test is on the origin, not on your fork. You may need to temporarily push a branch to the main jQuery UI repo. Then, copy the full commit ID of a commit you want to test. Next, make sure you have the latest version of https://github.com/jquery/download.jqueryui.com. Then you need to open Afterwards, run the following commands:
and open http://localhost:8080 in your browser. Click on the Download Builder link and you'll have a local version of the Download Builder. Choose |
Uhhh ok, I hoped to test this before my vacation, which starts tomorrow morning, but I guess this one would take a little longer :-D I might be able to do some testing in two weeks but no need to wait for me here. I assume I will just come to the same conclusion you did before. |
This reverts three commits:
which caused styling issues when compared to UI 1.12.1.
This unfixes a few issues:
However, old & known issues are better than new & unknown ones, especially with our current very limited resources.