Opened 10 years ago
Closed 10 years ago
#28655 closed enhancement (fixed)
Replace Customizer "close" button with an "X" icon
Reported by: | celloexpressions | Owned by: | helen |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Customize | Keywords: | has-patch |
Focuses: | ui | Cc: |
Description
@helen suggested on #27406 that perhaps the Customizer's "close" button should be replaced with an X (close) icon matching the placement of the arrow added there for sub-panels. Also discussed some in IRC.
This would make the Customizer controls feel more like a modal/panel over the site to help clarify the purpose of the Customizer as customization controls in a front-end context. Additionally, users could close the customizer from within a sub-panel by clicking twice in the same spot in the upper-left corner.
This would also align much better with other core UI patterns, and would be styled almost exactly the same as the theme browser's close button.
Attachments (14)
Change History (31)
#1
@
10 years ago
- Keywords needs-patch added
Should be fairy straightforward to patch, but needs some more discussion to decide whether or not we want to do this.
#2
follow-up:
↓ 3
@
10 years ago
- Keywords has-patch added; needs-patch removed
In the above patch, if we directly go to the customize.php?theme=* , and if we click the "X", it takes us to themes.php correctly (which we want) ... but if we goto themes.php and then click the preview button of any theme and then click the "X" button , even though it takes us to the themes.php page, it doesnt change the displayed URL of the page irrespective of any page you go to from there onwards. Can anyone suggest what is wrong?
#3
in reply to:
↑ 2
@
10 years ago
Replying to gauravmittal1995:
In the above patch, if we directly go to the customize.php?theme=* , and if we click the "X", it takes us to themes.php correctly (which we want) ... but if we goto themes.php and then click the preview button of any theme and then click the "X" button , even though it takes us to the themes.php page, it doesnt change the displayed URL of the page irrespective of any page you go to from there onwards. Can anyone suggest what is wrong?
This is being addressed in #25457 (Go back whence we came when closing the Customizer)
This ticket was mentioned in IRC in #wordpress-dev by gauravmittal_. View the logs.
10 years ago
This ticket was mentioned in IRC in #wordpress-dev by celloexpressions. View the logs.
10 years ago
#9
@
10 years ago
In the above patch, even though the cancel and close is not shown, its still used! Therefore, it can be used as it is being used now without any change.
#10
@
10 years ago
To celloexpressions,
Changing the class name was creating a small error described in comment 2.
Basically the patch one changed the class name only.
Thats one of the reasons i decided to keep back
@
10 years ago
Based on .control-panel-back
, use .screen-reader-text
, change JS variable to reduce potential confusion.
#11
@
10 years ago
Thanks for your work on this, @gauravmittal1995.
28655.diff cleans things up to match styling with .control-panel-back
, uses .screen-reader-text
, and eliminates "back" to reduce potential confusion, as we now have the panel-back button as well. It also keys to color schemes.
Still to-do: decide whether we should do something similar in the theme-install preview, or if we should leave that for now. We would also want to use arrows for the previous/next buttons there if we switched to the X for close, and would probably end up making several other minor tweaks accordingly.
This ticket was mentioned in IRC in #wordpress-dev by celloexpressions. View the logs.
10 years ago
@
10 years ago
Re-organized theme-install preview to use icons instead of buttons and make next/previous more prominent.
@
10 years ago
Replace close button with icon, also iconify the theme-install preview interface and make some associate tweaks there.
#13
@
10 years ago
28655.2.diff takes care of the Customizer and the theme-install preview, also moving some things around in the preview per IRC. I have a feeling this will cause a lot more people to navigate through different available themes from the preview interface.
#14
follow-up:
↓ 15
@
10 years ago
The icons are looking a bit to "heavy" in my eyes. Can't they have the same size as in the theme details modal, see https://cloudup.com/cyiwlF-Gp11/f?
@
10 years ago
Smaller icons for the theme-install previewer, matching the theme details modal instead of the Customizer.
#15
in reply to:
↑ 14
@
10 years ago
Replying to ocean90:
The icons are looking a bit to "heavy" in my eyes. Can't they have the same size as in the theme details modal, see https://cloudup.com/cyiwlF-Gp11/f?
I think the issue is that this larger size and darker color is more appropriate in the Customizer, where they need to compete with a lot more for attention, but when they're all visible together in the theme-installer, they start to feel overwhelming.
I was wanting to keep them consistent with the Customizer, but it looks better to match the sizing from the theme details modal. The darker color is needed to keep a similar amount of contrast with the darker background. I think 28655.3.diff is probably a good balance.
Mockup of x icon in place of button-styled close button, modeled after theme browser modal and the customizer sub-panel back arrow.