-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Theme #1384
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
Theme #1384
Conversation
Nice, I think this looks great. The new active color has much more contrast then before, which used to be too subtle. A few nitpicks:
That's all I found when checking all demos and visual tests in Chrome. Can check more browsers later. |
@@ -15,7 +15,7 @@ | |||
/* Component containers | |||
----------------------------------*/ | |||
.ui-widget { | |||
font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; | |||
font-family: Arial, Helvetica, sans-serif/*{ffDefault}*//*{ffDefault}*/; |
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.
This will break TR. Spaces are not allowed in values.
I got about ten lines into the review and stopped because this is going to destroy ThemeRoller. As for @jzaefferer's comment about menu items, highlighting the parent is important. I'm not sure why you think this is a bad idea, just look at a native menu. |
Looking at the menu bar in OSX, both "active" and focused items are displayed in blue. Instead we show a light gray for focused items and the active blue only on a parent menu item with a focused submenu item. |
In less fatal terms, we need to keep all the placeholders, which affects only the |
Got it. I didn't get to the point of viewing the theme. We should probably not differentiate between active and focused for menus. I'm pretty sure this has come up a few times and it's always been confusing. Treating the two states the same would simplify it and make it look better. |
I created a ticket for the menu issue: http://bugs.jqueryui.com/ticket/10692. This PR shouldn't get blocked by that. |
It is greenish yellow :) I thought that would make it look a bit more modern. Do you want it to be more yellow and less green?
I made the shadow a bit lighter. What do you think of that?
I removed the spaces from the
I added the comments/placeholders back. Will the ThemeRoller set the background position and repeat values, despite the fact that you can't adjust those values in the ThemeRoller? |
ThemeRoller is just a very simple token replacer. Anywhere that a |
I know, but what is "the value" if you can't set it anywhere in the ThemeRoller? Unless I missed something you can only set the background image, not the position and repeat values. |
I think the point was that there are multiple placeholders that ThemeRoller has no UI for, so in practice the value of those placeholders will never be changed by ThemeRoller. Between new CSS framework and merging or rewriting ThemeRollers, it seems fine to just drop unused placeholders now.
Sorry, looks like I didn't quite finish my comment there. It is greenish yellow, yes, and in my eyes it looks really bad. Sticks out like a "sore thumb" (not sure if that is a good metaphor here...).
Looks good now. |
I think this looks pretty bad, due to the lack of contrast. Even with large text (18pt), this fails WCAG's minimum contrast requirements. |
Ah yes, contrast is bad. I only glanced at the background color. Text color should we different to provide more contrast. |
I made some changes. Let me know what you think.
The question is where/how do we set background position ( |
Looks good to me.
Is there a way to keep those defaults even without a |
I took a closer look at how the jQuery UI ThemeRoller works and noticed that I was wrong. The TR will set the position and repeat values because they are hardcoded in /lib/themeroller.js. I will add those placeholders back. Update: I already did add those placeholders back in commit 44584e8 |
Nice, so this should be ready for TR. Which we should still test. @rxaviers what's a good way to test this new theme within TR? |
Give it a name and add it to TR as a new named theme? I'm assuming this new theme is compatible with the previous one (in other words, one would be able to create this theme by using TR). |
This replaces the base ("default") theme, so that's what we need to test. Creating a separate theme doesn't seem like a good test. Also I don't know if TR could generate this theme. |
What's the plan to support the previous (current) themes after this new base theme lands since they are incompatible? I'm assuming they are incompatible given your reply. |
Jörn and I have talked and giving the fact the variables are still the same we'll update TR and give it a try. I'll update here when it's done. |
@rxaviers can you look into this asap? We're getting closer to 1.12. |
Sure, it will be my priority #1 for tomorrow. |
-webkit-box-shadow: 0 0 5px #aaa; | ||
box-shadow: 0 0 5px #aaa; | ||
-webkit-box-shadow: 0 0 5px #ddd; | ||
box-shadow: 0 0 5px #ddd; |
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.
What's the motivation of this change? I'm asking, because it doesn't feel natural to me having a structural stylesheet changed for a theme adjustment.
Perhaps the question must be should we consider moving this into theme.css? Tooltip.css is the only structural stylesheet including a color as far as I can tell.
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.
In today's UI meeting, it was decided to "Update tooltip to use ui-widget-shadow class (via classes option, once that lands), move box-shadow definition into theme.css/.ui-widget-shadow, update TR to demo that instead of the weird fake shadow we have currently"
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.
@jaspermdegroot could you implement this? Let me know if you have questions.
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.
@jzaefferer - Sure, I will make some time for this next week.
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.
@jaspermdegroot Did you get a chance to work on this?
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.
@scottgonzalez - I didn't because @jzaefferer already created PR #1420. I think that PR, together with jquery/download.jqueryui.com#248, covers everything that needs to be done. Or did I miss something?
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.
Ah, right. Nevermind. I was just looking over this and saw the last comment saying you were going to make a change last week.
Except for the change in Currently, the default theme of a custom downloaded package is UI Lightness. The theme that reflects the base theme is called Smoothness. @jzaefferer and I have discussed and brought to UI's meeting today the inconsistency of having UI Lightness as the default theme of a custom download, but using the base (aka smoothness) theme as default on the repo and demos (including the one in the api docs). The accepted suggestion was to keep Smoothness and UI Lightness in the gallery, while to make the new proposed theme the default everywhere available as “Base”. |
You can select a background image in the ThemeRoller so I am not sure what you mean by no UI for bg Url. |
@jaspermdegroot you cannot select none. You must always pick a texture via TR UI. |
@rxaviers - Do you think it's easy to add "none" to the texture control? |
Not hard for sure. |
Keep "Smoothness" and "UI Lightness" in the gallery, while the new theme will be available as "Base" and it will be the default. Ref jquery/jquery-ui#1384
@jaspermdegroot, @jzaefferer and @scottgonzalez feel free to review jquery/download.jqueryui.com#248. (a) there is a picture of the ThemeRoller displaying "Base", (b) there are jQuery UI 1.9.2, 1.10.4, 1.11.2, 1.12.0-pre packages available for download using "Base", (c) there are steps to reproduce DB/TR locally using "Base". Just let me know in any questions. |
I thought I had seen at one point a mockup of the new theme without the rounded corners. Can we modernize this new theme a bit more by removing them rather than just slightly changing the radius? |
Personal preference I would not remove the radius entirely, but I would make it a lot smaller. @kborchers I think the mock up you saw used the old demos font size and since the radius is in em it would have therefor been a smaller radius. |
Yeah, I guess maybe a smaller radius would be fine too. Another look does show most themes still have some radius but they are much smaller so I would be fine with that too. Maybe 3px is ok. It could be better use of shadows in other framework themes that I like more as well. I don't know, I'm not a designer and just throwing in my 2 cents so take it or leave it. 😄 |
@kborchers @arschmitz - I am not sure what you guys are looking at. I did already reduce the border-radius to 3px in this PR. And if someone doesn't want rounded corners at all, he/she can remove the corner class with the new classes option I suppose. |
Is this theme supposed to work on 1.11.x, 1.10.x or 1.9.x too without any change? Or is this only intended to work on 1.12.x and up? |
I'd say it only matters for 1.12+, but I would assume that it would work on all versions. |
I'm concerned about having download builder (which serves 1.11.x, 1.10.x and 1.9.x) to distribute this theme by default giving it hasn't been tested on previous versions. So, I'm wondering if @jaspermdegroot (that created the theme) or anyone that is reviewing it could ensure it can be used just fine without any modification to the previous releases. |
Isn't this exactly what ThemeRoller does? I don't see any reason this wouldn't work. |
I made a wrong assumption (discussed via IRC), nevermind. |
I'm closing this in favour of #1420 to prevent further confusion. |
Keep "Smoothness" and "UI Lightness" in the gallery, while the new theme will be available as "Base" and it will be the default. Ref jquery/jquery-ui#1384
Keep "Smoothness" and "UI Lightness" in the gallery, while the new theme will be available as "Base" and it will be the default. Ref jquery/jquery-ui#1384
I wasn't sure if switching to shorthand for hex color codes would cause problems with the ThemeRoller so I didn't follow our new CSS style guide.