-
Notifications
You must be signed in to change notification settings - Fork 369
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
a11y: update the aria-label and placeholder in search box #2653
Conversation
Coverage remained the same at 41.458% when pulling 58e4839ccce10852eabc8aac68f200d589778e26 on lei9444:fixa11y1 into a056f53 on microsoft:master. |
@DesignPolice could you take a look? |
Hi @corinagum and @lei9444 Ya looks like this one slipped into the production path - @mareekuh didn't want to swap to a ComboBox on this one as it does not match expected interaction pattern for either combo or filter control. We have an alternative in mind to use the Global Search with some limitations to search only in the app. The new figma design flow is here: Happy to start a conversation on how best or when best to implement this, in regard to the a11y timeframes Thanks a bunch |
Thanks DesignPolice. it looks like this will need further discussion. @lei9444, I think your previous PR was very close to a working intermediary fix that we can use until the decision on dialog filter has been completed. If I recall correctly, I believe you changed the ariaLabel from 'Filter dialog' to 'Search box', but since there were repeats, maybe you can remove the ariaLabel and see if that produces 'Search box. Filter dialog' instead. What do you think? Let me know if you have any questions. @mareekuh and @cwhitten I think the above paragraph should be sufficient to fix this a11y bug without changing surface area until the UX change (if any) is finalized. During design, I recommend involving the a11y audit team so they can chime in before the spec is finalized. |
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.
For now, let's continue working on the fix you had in the previous PR.
@cwhitten - Apologies for the misunderstanding. The design to address the accessibility issues and keep the desired behavior is located here: https://www.figma.com/file/LlTlh5vXwq91zjGnFtrUUR6l/Composer-master-design-spec-%2F-UI-library?node-id=1123%3A19432. It's been up there for a while but we have had areas of higher priority to review in our meetings (publish, skills manifest etc). Expected look & feel + behavior:
More information about the Fluent control can be found here: We cannot use a combo-box for this functionality. I won't get us the behavior intended and sets the wrong expectations to our users about how to use this. Please let me know if you have any questions. Marieke Regarding the combo box, this is the prescribed functionality/behavior: |
@mareekuh we're not going to implement global search to address the filter box accessibility issues. @corinagum 's guidance is right. global search needs more than some static screens and placeholder data before we build it. |
I am not asking for a global search box. |
Oh, sorry I'm confused. We use <SearchBox /> today in this control.
<SearchBox
placeholder={formatMessage('Filter Dialogs')}
styles={searchBox}
onChange={onFilter}
iconProps={{ iconName: 'Filter' }}
/>
…On Wed, Apr 15, 2020 at 2:01 PM mareekuh ***@***.***> wrote:
I am not asking for a global search box.
I am asking for placing a search box with filter icon and control in the
place prescribed by Fluent.
Same behavior, same scope, same look and feel different location (see
below). But a standard control that is accessible and meets fluent
guidelines. A combo box does not filter.
[image: Screen Shot 2020-04-15 at 1 39 55 PM]
<https://user-images.githubusercontent.com/48503434/79388058-8b8ad000-7f21-11ea-8a41-3524a5bbb417.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2653 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI2MYG2PDFXL3A4W7SIARDRMYODLANCNFSM4MIIY73A>
.
|
331aa37
to
92127d0
Compare
Hi, @cwhitten @mareekuh @sangwoohaan @corinagum, I have removed the combobox and reverted the code. I have add a aria-label for reader. |
Thanks @lei9444 - appreciate all the help. |
Hi @corinagum #2055 can't be fixed in this PR, I have updated the description. Could you help to move it to Todo again. I will fix it in next PR |
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.
Thanks @lei9444!
…2653) * a11y: update the aria-label and placeholder in search box * update placeholder * update the aris label Co-authored-by: Corina <14900841+corinagum@users.noreply.github.com>
Description
test in narrator and nvda
Previously, the reader would say 'Filter dialog. Filter dialog'
Now, the reader says 'Type dialog name, Filter Dialog'
Task Item
refs #2054
Screenshots