-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fix: screen reader announces search results status message #644
Conversation
@@ -37,6 +40,7 @@ const PanelList = ({ messages, permissions, | |||
searchValueChanged(event, newValue)} | |||
styles={{ field: { paddingLeft: 10 } }} | |||
/> | |||
<Announced message={`${permissions.length} search results available.`}/> |
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.
string localization
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.
Since it's only a message that is being read, I tested this out with a Spanish narrator, and the narrator translates it itself
@@ -1,4 +1,7 @@ | |||
import { DetailsList, DetailsListLayoutMode, IColumn, Label, SearchBox, SelectionMode } from 'office-ui-fabric-react'; | |||
import { | |||
Announced, DetailsList, DetailsListLayoutMode, IColumn, |
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.
Place each imported class on a newline.
import {
Announced,
DetailList,
...
} from '..'
@@ -37,6 +40,7 @@ const PanelList = ({ messages, permissions, | |||
searchValueChanged(event, newValue)} | |||
styles={{ field: { paddingLeft: 10 } }} | |||
/> | |||
<Announced message={`${permissions.length} search results available.`}/> |
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.
Does the announce message get triggered only when a search has happened?
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.
yeah it does
Overview
Added announced component which enables a screen reader to announce the 'Search sample queries' and 'Search permissions' (search result) information.
Testing Instructions