-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] [Accessibility] Screen reader should announce field name as well as type for data visualizer card #31108 #34689
Conversation
…alize card and indexed stats' cards
Pinging @elastic/ml-ui |
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
x-pack/plugins/ml/public/components/field_title_bar/field_title_bar.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/ml/public/file_datavisualizer/components/fields_stats/field_stats_card.js
Outdated
Show resolved
Hide resolved
💔 Build Failed |
x-pack/plugins/ml/public/components/field_title_bar/field_title_bar.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/ml/public/file_datavisualizer/components/fields_stats/field_stats_card.js
Outdated
Show resolved
Hide resolved
…om IconType to Card's component;
💔 Build Failed |
…ewritten field_type_icon component, tests are adjusted;
x-pack/plugins/ml/public/components/field_type_icon/field_type_icon.js
Outdated
Show resolved
Hide resolved
💔 Build Failed |
x-pack/plugins/ml/public/components/field_title_bar/field_title_bar.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/ml/public/components/field_type_icon/field_type_icon.js
Outdated
Show resolved
Hide resolved
💔 Build Failed |
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested latest changes with ChromeVox and LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
… as type for data visualizer card elastic#31108 (elastic#34689) * card title announce itself including type and name on both data visualize card and indexed stats' cards * aria labels moved from IconType to FieldTypesUtils; tabIndex moved from IconType to Card's component; * refactoring ML components, moved some code to field_types_utils.js, rewritten field_type_icon component, tests are adjusted;
… as type for data visualizer card #31108 (#34689) (#35059) * card title announce itself including type and name on both data visualize card and indexed stats' cards * aria labels moved from IconType to FieldTypesUtils; tabIndex moved from IconType to Card's component; * refactoring ML components, moved some code to field_types_utils.js, rewritten field_type_icon component, tests are adjusted;
Fix: #31108
Summary
Now the title bar constructor passes additional aria suffix to let it announce a type as well as a title.
How it announces itself
On both these cards (the 1st is indexed, another one is a file visualized) screen reader announces type at first, then title.
Examples
keyword type, currency
it saysnumber type, products dot price
it says