-
Notifications
You must be signed in to change notification settings - Fork 345
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
Combobox examples with listbox popup: Add properties and states to listbox control button #1336
Conversation
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 for this @jongund!! I made some suggestions for the button labels.
@@ -53,7 +53,7 @@ <h2 id="ex_label">Example</h2> | |||
<div class="group"> | |||
<input id="cb1-input" class="cb_edit" type="text" role="combobox" aria-autocomplete="list" | |||
aria-expanded="false" aria-controls="cb1-listbox"> | |||
<button id="cb1-button" tabindex="-1" aria-label="Open"> | |||
<button id="cb1-button" tabindex="-1" aria-label="State" aria-expanded="false" aria-controls="cb1-listbox"> |
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.
Same recommendation as above:
<button id="cb1-button" tabindex="-1" aria-label="State" aria-expanded="false" aria-controls="cb1-listbox"> | |
<button id="cb1-button" tabindex="-1" aria-label="States" aria-expanded="false" aria-controls="cb1-listbox"> |
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.
Fixed
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.
Looks very good from editorial perspective; as the button is not actually part of the combobox, I agree that the table about it should be last. I made 3 comments regarding the need to document use of aria-label.
I updated the pull request with your suggestions and also added a row for |
Visual design review: the relevant change is about Windows high contrast, reviewed in #1331 (comment) |
Maybe #1343 should be merged first, and this be rebased on top and remove the |
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.
Formatting nits in a first pass of code review
Never mind; I think that PR should add a lint check, which means other PRs like this one don't need to be blocked on it. |
I think those failures were introduced by #1276. I can report a new issue about this. |
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.
Code review and test review done. This looks OK except for formatting nits above.
I can apply them and merge.
Actually I can't merge, I'm not authorized to push to protected branches. |
Combobox examples with listbox popup: Add expanded and controls to popup control button and make visible in high contrast (pull #1336) Fixes issues #1333 and #1331: * added new name, aria-expanded, and aria-controls to popup control button. * Added regression test for new aria properties on popup control button. * Added documentation for attributes on popup control button. * updated css to support Windows high contrast mode. Co-authored-by: Matt King <[email protected]> Co-authored-by: Simon Pieters <[email protected]>
Combobox examples with listbox popup: Add expanded and controls to popup control button and make visible in high contrast (pull w3c#1336) Fixes issues w3c#1333 and w3c#1331: * added new name, aria-expanded, and aria-controls to popup control button. * Added regression test for new aria properties on popup control button. * Added documentation for attributes on popup control button. * updated css to support Windows high contrast mode. Co-authored-by: Matt King <[email protected]> Co-authored-by: Simon Pieters <[email protected]>
…pup control button and make visible in high contrast (pull w3c#1336) Fixes issues w3c#1333 and w3c#1331: * added new name, aria-expanded, and aria-controls to popup control button. * Added regression test for new aria properties on popup control button. * Added documentation for attributes on popup control button. * updated css to support Windows high contrast mode. Co-authored-by: Matt King <[email protected]> Co-authored-by: Simon Pieters <[email protected]>
Fixes #1333 and #1331:
Preview link
View the combobox examples in the compare branch with RawGitHack
Review checklist