Skip to content
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

Merged
merged 10 commits into from
Mar 9, 2020

Conversation

jongund
Copy link
Contributor

@jongund jongund commented Feb 16, 2020

@mcking65 mcking65 changed the title Issue1333 add aria to button Combobox examples with listbox popup: Add properties and states to listbox control button Feb 17, 2020
Copy link
Contributor

@mcking65 mcking65 left a 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.

examples/combobox/combobox-autocomplete-both.html Outdated Show resolved Hide resolved
@@ -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">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same recommendation as above:

Suggested change
<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">

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

examples/combobox/combobox-autocomplete-none.html Outdated Show resolved Hide resolved
Copy link
Contributor

@mcking65 mcking65 left a 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.

@jongund
Copy link
Contributor Author

jongund commented Feb 17, 2020

@mcking65

I updated the pull request with your suggestions and also added a row for tabindex=-``. I also added a section in the keyboard support section saying that the button` is being removed from tab sequence of the page, but is still important for assistive technologies that use touch events to open the listbox.

@jongund
Copy link
Contributor Author

jongund commented Feb 17, 2020

@mcking65

I updated this pull request to also address issue #1331 high contrast mode.

@zcorpan
Copy link
Member

zcorpan commented Mar 3, 2020

Visual design review: the relevant change is about Windows high contrast, reviewed in #1331 (comment)

@zcorpan
Copy link
Member

zcorpan commented Mar 3, 2020

Maybe #1343 should be merged first, and this be rebased on top and remove the t.plan(1)s.

Copy link
Member

@zcorpan zcorpan left a 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

examples/combobox/combobox-autocomplete-list.html Outdated Show resolved Hide resolved
test/tests/combobox_autocomplete-both.js Outdated Show resolved Hide resolved
test/tests/combobox_autocomplete-both.js Outdated Show resolved Hide resolved
test/tests/combobox_autocomplete-none.js Outdated Show resolved Hide resolved
test/tests/combobox_autocomplete-none.js Outdated Show resolved Hide resolved
examples/combobox/combobox-autocomplete-none.html Outdated Show resolved Hide resolved
@zcorpan
Copy link
Member

zcorpan commented Mar 3, 2020

Maybe #1343 should be merged first, and this be rebased on top and remove the t.plan(1)s.

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.

@zcorpan
Copy link
Member

zcorpan commented Mar 3, 2020

npm run regression-report gives

combobox/combobox-autocomplete-both.html:
    combobox-id
combobox/combobox-autocomplete-list.html:
    combobox-id
combobox/combobox-autocomplete-none.html:
    combobox-id

I think those failures were introduced by #1276. I can report a new issue about this.

Copy link
Member

@zcorpan zcorpan left a 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.

@zcorpan
Copy link
Member

zcorpan commented Mar 4, 2020

Actually I can't merge, I'm not authorized to push to protected branches.

@mcking65 mcking65 merged commit 941af00 into master Mar 9, 2020
@mcking65 mcking65 deleted the issue1333-add-aria-to-button branch March 9, 2020 02:29
michael-n-cooper pushed a commit that referenced this pull request Mar 9, 2020
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]>
nschonni pushed a commit to nschonni/aria-practices that referenced this pull request Mar 17, 2020
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]>
carmacleod pushed a commit to carmacleod/aria-practices that referenced this pull request Mar 31, 2020
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants