Customizer: Introduce customize_loaded_components filter to allow core components to be disabled.

Also move style rule from `customize-nav-menus.css` to `customize-controls.css` so that widgets button is properly styled when `nav_menus` component is excluded from loading. See [35304]. See #33327.

Props westonruter, DrewAPicture.
Fixes #33552.

Built from https://develop.svn.wordpress.org/trunk@35307


git-svn-id: http://core.svn.wordpress.org/trunk@35273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter
2015-10-20 22:16:25 +00:00
parent 3451251548
commit bee05e0cdc
10 changed files with 54 additions and 33 deletions

View File

@@ -3,6 +3,18 @@ body {
-webkit-text-size-adjust: 100%;
}
button.not-a-button {
background: transparent;
border: none;
-webkit-box-shadow: none;
box-shadow: none;
-webkit-border-radius: 0;
border-radius: 0;
outline: 0;
padding: 0;
margin: 0;
}
#customize-controls a {
text-decoration: none;
}