Accessibility: Fix the Customizer available menu items toggles focus for Safari and VoiceOver.

In rare circumstances, for example buttons with icons and no visible text,
`user-select: none;` may trigger a bug that happens only when using Safari and
VoiceOver and doesn't allow focusable elements to receive focus correctly.
Worth reminding `user-select: none;` is a non-standard property and should be
used with care especially now that `::selection` is almost universally supported.

Fixes #37589.

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


git-svn-id: http://core.svn.wordpress.org/trunk@38585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2016-09-22 14:59:30 +00:00
parent d790e246d5
commit b558fbec6f
5 changed files with 13 additions and 3 deletions

View File

@ -482,6 +482,11 @@
background: #fff;
-webkit-transition: background-color 0.15s;
transition: background-color 0.15s;
/* Reset the value inherited from the base .accordion-section-title style. Ticket #37589. */
-webkit-user-select: auto;
-moz-user-select: auto;
-ms-user-select: auto;
user-select: auto;
}
#available-menu-items .open .accordion-section-title,

File diff suppressed because one or more lines are too long

View File

@ -482,6 +482,11 @@
background: #fff;
-webkit-transition: background-color 0.15s;
transition: background-color 0.15s;
/* Reset the value inherited from the base .accordion-section-title style. Ticket #37589. */
-webkit-user-select: auto;
-moz-user-select: auto;
-ms-user-select: auto;
user-select: auto;
}
#available-menu-items .open .accordion-section-title,

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38641';
$wp_version = '4.7-alpha-38642';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.