[wp-trac] [WordPress Trac] #40432: Customizer: Should we stop contextually hiding features?
WordPress Trac
noreply at wordpress.org
Wed Apr 12 22:37:44 UTC 2017
#40432: Customizer: Should we stop contextually hiding features?
-------------------------+------------------------------
Reporter: melchoyce | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by westonruter):
Note that contextually controls, sections, and panels are were developed
in #27993 and #29758. The default implementation was that for them to be
contextually ''shown''. So this is why widget area sections become hidden
when the widget area is not shown in the preview. This isn't the only
option, however: if you have the Widget Visibility module of Jetpack
enabled and you configure the widget to not be displayed on a given page,
then the widget will not be hidden from view but is rather given less
opacity (grayed) to indicate it is not currently previewed. Something like
this could be done for inactive sidebars, but yes, “this could overload
the customizer and confusing the user as well.”
One thing for sure is that the behavior for what happens when a
control/section/panel becomes inactive needs to be configurable when
registered, and it should default to completely hide the item since this
is the behavior that existing theme and plugin authors expect. If a
control/section/panel should be grayed out instead of hidden, then it
could be registered with `show_deactivated => true` where it defaults to
`false`. This flag would need to be taken into account by the existing
logic for expanding/collapsing since when a section deactivates by default
it gets collapsed if it is currently expanded.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40432#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list