mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-22 20:40:49 +02: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. Reviewed by isabel_brison, SergeyBiryukov. Merges [49737] to the 5.6 branch. Fixes #51923. Built from https://develop.svn.wordpress.org/branches/5.6@49738 git-svn-id: http://core.svn.wordpress.org/branches/5.6@49461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ca0e9e0891
commit
b152d93471
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
@ -30612,7 +30612,7 @@ function ComboboxControl(_ref) {
|
|||||||
var message = hasMatchingSuggestions ? Object(external_this_wp_i18n_["sprintf"])(
|
var message = hasMatchingSuggestions ? Object(external_this_wp_i18n_["sprintf"])(
|
||||||
/* translators: %d: number of results. */
|
/* 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_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
|
}, [matchingSuggestions, isExpanded]); // Disable reason: There is no appropriate role which describes the
|
||||||
// input container intended accessible usability.
|
// input container intended accessible usability.
|
||||||
@ -30638,6 +30638,7 @@ function ComboboxControl(_ref) {
|
|||||||
instanceId: instanceId,
|
instanceId: instanceId,
|
||||||
ref: inputContainer,
|
ref: inputContainer,
|
||||||
value: isExpanded ? inputValue : currentLabel,
|
value: isExpanded ? inputValue : currentLabel,
|
||||||
|
"aria-label": currentLabel ? "".concat(currentLabel, ", ").concat(label) : null,
|
||||||
onFocus: onFocus,
|
onFocus: onFocus,
|
||||||
isExpanded: isExpanded,
|
isExpanded: isExpanded,
|
||||||
selectedSuggestionIndex: matchingSuggestions.indexOf(selectedSuggestion),
|
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
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.6-RC2-49734';
|
$wp_version = '5.6-RC2-49738';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user