Customizer: Hide the transport list when it's empty, especially for screen readers.
Also prevent invalid markup for `.customize-section-description`. Props valendesigns. Fixes #32843. Built from https://develop.svn.wordpress.org/trunk@33282 git-svn-id: http://core.svn.wordpress.org/trunk@33254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3271513442
commit
8c9eb43d47
|
@ -227,6 +227,18 @@ body {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.customize-section-description {
|
||||||
|
margin-top: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.customize-section-description p:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.customize-section-description p:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child {
|
#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child {
|
||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
padding: 12px 12px 12px 12px;
|
padding: 12px 12px 12px 12px;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -227,6 +227,18 @@ body {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.customize-section-description {
|
||||||
|
margin-top: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.customize-section-description p:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.customize-section-description p:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child {
|
#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child {
|
||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
padding: 12px 12px 12px 12px;
|
padding: 12px 12px 12px 12px;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -408,7 +408,6 @@
|
||||||
.menu-item-depth-11 > .menu-item-bar { margin-left: 220px; }
|
.menu-item-depth-11 > .menu-item-bar { margin-left: 220px; }
|
||||||
|
|
||||||
/* Submenu left margin. */
|
/* Submenu left margin. */
|
||||||
/* @todo menu-item-transport seems entirely unused. */
|
|
||||||
.menu-item-depth-0 .menu-item-transport { margin-right: 0; }
|
.menu-item-depth-0 .menu-item-transport { margin-right: 0; }
|
||||||
.menu-item-depth-1 .menu-item-transport { margin-right: -20px; }
|
.menu-item-depth-1 .menu-item-transport { margin-right: -20px; }
|
||||||
.menu-item-depth-3 .menu-item-transport { margin-right: -60px; }
|
.menu-item-depth-3 .menu-item-transport { margin-right: -60px; }
|
||||||
|
|
|
@ -408,7 +408,6 @@
|
||||||
.menu-item-depth-11 > .menu-item-bar { margin-right: 220px; }
|
.menu-item-depth-11 > .menu-item-bar { margin-right: 220px; }
|
||||||
|
|
||||||
/* Submenu left margin. */
|
/* Submenu left margin. */
|
||||||
/* @todo menu-item-transport seems entirely unused. */
|
|
||||||
.menu-item-depth-0 .menu-item-transport { margin-left: 0; }
|
.menu-item-depth-0 .menu-item-transport { margin-left: 0; }
|
||||||
.menu-item-depth-1 .menu-item-transport { margin-left: -20px; }
|
.menu-item-depth-1 .menu-item-transport { margin-left: -20px; }
|
||||||
.menu-item-depth-3 .menu-item-transport { margin-left: -60px; }
|
.menu-item-depth-3 .menu-item-transport { margin-left: -60px; }
|
||||||
|
|
|
@ -531,6 +531,11 @@ li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar {
|
||||||
margin-top: 13px;
|
margin-top: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Hide the transport list when it's empty */
|
||||||
|
.menu-item .menu-item-transport:empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* WARNING: The factor of 30px is hardcoded into the nav-menus JavaScript. */
|
/* WARNING: The factor of 30px is hardcoded into the nav-menus JavaScript. */
|
||||||
.menu-item-depth-0 { margin-right: 0px; }
|
.menu-item-depth-0 { margin-right: 0px; }
|
||||||
.menu-item-depth-1 { margin-right: 30px; }
|
.menu-item-depth-1 { margin-right: 30px; }
|
||||||
|
|
|
@ -531,6 +531,11 @@ li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar {
|
||||||
margin-top: 13px;
|
margin-top: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Hide the transport list when it's empty */
|
||||||
|
.menu-item .menu-item-transport:empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* WARNING: The factor of 30px is hardcoded into the nav-menus JavaScript. */
|
/* WARNING: The factor of 30px is hardcoded into the nav-menus JavaScript. */
|
||||||
.menu-item-depth-0 { margin-left: 0px; }
|
.menu-item-depth-0 { margin-left: 0px; }
|
||||||
.menu-item-depth-1 { margin-left: 30px; }
|
.menu-item-depth-1 { margin-left: 30px; }
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -363,7 +363,9 @@ class WP_Customize_Section {
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<# if ( data.description ) { #>
|
<# if ( data.description ) { #>
|
||||||
<p class="description customize-section-description">{{{ data.description }}}</p>
|
<div class="description customize-section-description">
|
||||||
|
{{{ data.description }}}
|
||||||
|
</div>
|
||||||
<# } #>
|
<# } #>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-beta2-33281';
|
$wp_version = '4.3-beta2-33282';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue