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

Update button and input button allowances #446

Merged
merged 14 commits into from
Jul 5, 2023

Conversation

scottaohara
Copy link
Member

@scottaohara scottaohara commented Feb 6, 2023

closes #444
closes #395
closes #298

These PR supersedes #405

This PR makes the allowances for button-elements (button, input type=button|image|submit|reset) more consistent with each other. Additionally, slider and gridcell are now listed under the allowed roles for these elements.

the LOE to properly create the necessary UX for some of these roles when specified, especially on the input type buttons, is rather large but possible. Any failures to not implement these properly would be caught by WCAG rules. Allowing the roles won't change that.

  • HTML validator
  • IBM equal access accessibility checker
  • axe-core
  • ARC toolkit

(the issues for each of these checkers are referenced later in this thread)

button and input type=button test cases and
input type=reset, image, submit test cases


Preview | Diff

closes #444
closes #395
closes #298

This PR makes the allowances for button-elements (button, input type=button|image|submit|reset) more consistent with each other.  Additionally, slider and gridcell are now listed under the allowed roles for these elements.

the LOE to properly create the necessary UX for some of these roles when specified, especially on the `input` type buttons, is rather large _but_ possible.  Any failures to not implement these properly would be caught by WCAG rules.  Allowing the roles won't change that.
@scottaohara scottaohara added needs implementation commitment Cannot merge into spec until implementations in conformance checkers has been confirmed. needs changelog entry once 2 implementations land, we can merge and note it in our changelog. labels Feb 6, 2023
scottaohara added a commit that referenced this pull request Feb 6, 2023
incorporates feedback from steve and sarah.  includes language "the following roles are allowed, but are NOT RECOMMENDED" to introduce new allowed roles which _can_ work depending on what's been built, but there are probably better ways to do this.  This wording is also used in #446, and allows for us to indicate these changes per element, without having to restructure the entire table (as this can be the end goal, rather than trying to get all allowed roles for all elements updated at once).
@scottaohara scottaohara added the Allowed roles Pertaining to the allowed roles of HTML elements label Feb 6, 2023
@scottaohara scottaohara added Meets 2 implementations req Indicates that a spec change has met the necessary 2 implementations needed to merge. and removed needs implementation commitment Cannot merge into spec until implementations in conformance checkers has been confirmed. labels May 15, 2023
and re-simplify input type=image rules.  now all button elements have the same rules, even though type=image is likely to be more trouble than it's worth for authors to use, correctly and without other wcag related issue.
@scottaohara scottaohara removed the needs changelog entry once 2 implementations land, we can merge and note it in our changelog. label Jul 5, 2023
@scottaohara scottaohara merged commit 93d3476 into gh-pages Jul 5, 2023
@scottaohara scottaohara deleted the button-inputbutton-allowances branch July 5, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Allowed roles Pertaining to the allowed roles of HTML elements Meets 2 implementations req Indicates that a spec change has met the necessary 2 implementations needed to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update: Allow role=slider on button and input type=button elements Inconsistent allowed roles for "button" elements Allow gridcell and treeitem roles on button elements
2 participants