-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Review/fix examples for accessibility #a11y #1431
Comments
more bits/context here https://mastodon.social/@sil/110340406008743130 including
|
Possible mitigations:
|
I totally agree. Especially all examples in the "documentation" with "div-buttons" should use "button"-tag instead or add the required role and aria-attributes. Details and examples can be found on the ARIA Authoring Practices Guide (APG): https://www.w3.org/WAI/ARIA/apg/patterns/button/ Examples I viewed: https://htmx.org/docs/#introduction |
And use ARIA to announce a summary of the bulk update. By using a checkbox input to represent the activation status, we don't need to re-render it when it's changed, because the checkbox itself manages that state. Re: bigskysoftware#1431
* Minimize re-rendering of 'bulk update users' table And use ARIA to announce a summary of the bulk update. By using a checkbox input to represent the activation status, we don't need to re-render it when it's changed, because the checkbox itself manages that state. Re: #1431 * Improve screen reader pronunciation
* Minimize re-rendering of 'bulk update users' table And use ARIA to announce a summary of the bulk update. By using a checkbox input to represent the activation status, we don't need to re-render it when it's changed, because the checkbox itself manages that state. Re: bigskysoftware#1431 * Improve screen reader pronunciation
* Minimize re-rendering of 'bulk update users' table And use ARIA to announce a summary of the bulk update. By using a checkbox input to represent the activation status, we don't need to re-render it when it's changed, because the checkbox itself manages that state. Re: bigskysoftware#1431 * Improve screen reader pronunciation
I'd also note that the modal dialog examples fail in at least a few ways:
In terms of impact, note that "examples" are often interpreted by developers as "the right way to do X" or "copy this source code", so this could have consequences for websites built by folks new to HTMX. |
PRs are always welcome to improve documentation btw, if you feel like it! |
With apologies for a rather high-level/vague issue (compared to more specific listings / PRs with proposed fixes), but: having skimmed a few of the examples provided on https://htmx.org/examples/ I'd note that the majority of the ones I've checked seem to lack at least a few basic keyboard accessibility requirements.
For demos involving buttons, there is currently no actual visible focus indication for when a button has/hasn't got focus.
Beyond that, a few specific issues:
<a>
elements, since they lack an actualhref
, don't receive keyboard focus)I was hoping to be able to jump in and evaluate the examples further for screen reader support (and in particular checking that focus is handled correctly/isn't lost and reset when fragments are reloaded/replaced), but these initial keyboard access problems are already an early-warning sign that there's likely further / more fundamental problems here that need to be addressed first, before even going down the SR testing/improvements route.
The text was updated successfully, but these errors were encountered: