mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
Editor: Update components package for WordPress 5.6 RC3.
@wordpress/components: 11.1.2 -> 11.1.3 This fixes an accessibility regression with VoiceOver not announcing the input label or an existing selection in the parent page dropdown under "Page Attributes" in the sidebar. See https://github.com/WordPress/gutenberg/pull/27431 for more details. Props isabel_brison, sarahricker, alexstine, kevin940726, talldanwp. Fixes #51923. Built from https://develop.svn.wordpress.org/trunk@49737 git-svn-id: http://core.svn.wordpress.org/trunk@49460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
be2891ef1a
commit
fc3a155f6a
File diff suppressed because one or more lines are too long
3
wp-includes/js/dist/components.js
vendored
3
wp-includes/js/dist/components.js
vendored
@ -30542,7 +30542,7 @@ function ComboboxControl(_ref) {
|
||||
var message = hasMatchingSuggestions ? Object(external_this_wp_i18n_["sprintf"])(
|
||||
/* translators: %d: number of results. */
|
||||
Object(external_this_wp_i18n_["_n"])('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', matchingSuggestions.length), matchingSuggestions.length) : Object(external_this_wp_i18n_["__"])('No results.');
|
||||
Object(external_this_wp_a11y_["speak"])(message, 'assertive');
|
||||
Object(external_this_wp_a11y_["speak"])(message, 'polite');
|
||||
}
|
||||
}, [matchingSuggestions, isExpanded]); // Disable reason: There is no appropriate role which describes the
|
||||
// input container intended accessible usability.
|
||||
@ -30568,6 +30568,7 @@ function ComboboxControl(_ref) {
|
||||
instanceId: instanceId,
|
||||
ref: inputContainer,
|
||||
value: isExpanded ? inputValue : currentLabel,
|
||||
"aria-label": currentLabel ? "".concat(currentLabel, ", ").concat(label) : null,
|
||||
onFocus: onFocus,
|
||||
isExpanded: isExpanded,
|
||||
selectedSuggestionIndex: matchingSuggestions.indexOf(selectedSuggestion),
|
||||
|
2
wp-includes/js/dist/components.min.js
vendored
2
wp-includes/js/dist/components.min.js
vendored
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7-alpha-49736';
|
||||
$wp_version = '5.7-alpha-49737';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user