-
-
Notifications
You must be signed in to change notification settings - Fork 557
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
feat: add WCAG levels #1270
base: main
Are you sure you want to change the base?
feat: add WCAG levels #1270
Conversation
Thank you for opening this Pull Request! Please make sure you've read our Code of Conduct and Contributing guidelines. |
Thank you so much for this pull request, @aguscha333! I love the idea of clarifying the WCAG level(s) associated with each checklist item. I did a major overhaul of the checklist data structure in #1268, and that blocks this PR for now. Once #1268 merges, I am happy to take responsibility for any merge conflicts that you experience here. Some thoughts this PR itself:
|
370ada4
to
0d27d87
Compare
While I realize this content predates the work being done here (which all the work in this PR seems pretty great from what I've reviewed) I was reviewing the actual checklist content as well. There are some SCs that need to be updated as they are not accurately referenced, and I figured it would be better to just lump that all into this PR, rather than create any merge conflicts or what not. So, here's the issues that jumped out at me when reviewing:
this is likely more a 2.4.4 issue for links (possibly 2.4.9 depending on context) and a 2.4.6 issue for labels... possibly buttons. It's a bit dicey putting these all together, but the point being that 1.3.1 doesn't really apply here. I'm not sure exactly what you want to do here, but I suggest at the very least removing the SC if you can't cite multiple SCs.
This would be a 1.3.1 issue. 4.1.2 is more about interactive content
Generally agree with this, but arguable if this would be a 2.4.3 issue. Sometimes using
This is arguably more of a 2.1.1 keyboard issue as - if the content is actually important - would generally be inaccessible to keyboard only users. since title is generally exposed to AT, 4.1.2 doesn't really hold true here.
1.3.2 may not apply here as content doesn't necessarily need to match visual focus order. 2.4.3 may be more appropriate to cite.
All checklist items in the headings section incorrectly cite 2.4.6. 2.4.6 is about the quality of heading text, but has nothing to do with whether the text is properly exposed as a heading. These would all be 1.3.1/best practice issues.
Unsure why this is cited as a 4.1.1 issue. Seems it should be a 1.3.1
Again, not a 2.4.6 unless there is a
Not a 3.2.2 issue. Typo for 3.3.2?
Should be 1.3.1 and/or 4.1.2.
Probably should be 4.1.2 since that's about interactive controls
Technically yes, audio content is 1.1.1. But alternatives to audio content would generally be cited under 1.2.3
Would generally point to this as a strongly recommended best practice, not a wcag failure, particularly not this one.
would qualify some content - e.g., tables, maps, large graphs - are totally fine to have bi-directional scrolling. dont' want to make people think they have to negate table semantics and then potentially wind up with other wcag failures (e.g., 1.3.2) when content no longer makes sense in the reading order. |
Thanks for these notes, @scottaohara! @aguscha333, I'd be happy to implement the content changes Scott has pointed out, if you'd like. I think these changes could either go into this PR, or into a separate one dedicated to the rewrite. |
@mxmason thanks for offering. If you don't mind I'd like to try to implement the changes myself to keep contributing to the repo. Those changes do touch more technical subjects about WCAG itself so what I will need is help with a thorrow review since I only recently started learning about accessibility so I could have some conceptual errors in the changes. |
@aguscha333 sounds good to me! feel free to tag me directly if you need anything! |
Sounds like a good plan to me too. I guess we are tracking it in #1277 now (thanks @mxmason for creating the issue!). In that case, according to me, this PR is ready to be merged. cc @scottaohara @ericwbailey |
I'd like to hold off on merging until #1277 is addressed. I don't feel comfortable merging if there are misrepresented SCs. |
@ericwbailey @mxmason Tried implementing #1277 but going through the suggestions there are a lot that are more open ended and would require some more decision making from someone with more knowledge on the topic. I'm glad to keep contributing in the future but I think I need to sit this one out since I am still a newbie with a11y. |
if you think more work needs to go into correctly citing the WCAG SCs, then I would suggest you simply comment out the SCs for the checklist items where there is not a simple swap out of the errant SC for the correct one. Then additional thought can go into the items that need more nuance, without continuing to cite inaccurate SCs while that work is being done. |
@scottaohara @ericwbailey sorry it took me soo long to get back to this. Unfortunately comments are not allowed in JSON files so I had to remove them instead. I took the removal approach to most of the items mentioned by @scottaohara since most of the comments looked like were meant to open up discussions rather than this should be exactly like this or that. If anyone wants to jump in and do something different for the ones I removed, totally cool with that. |
Closes #1209
Summary
This PR adds the WCAG level to each checklist item so it's easier to know what checks to prioritize when trying to make a site accessible.
Notes / Questions
I tried putting it in the part of the checklist item that is always visible but there there was a concern with responsiveness and the full
Level: AAA
was taking too much space.That being said, I know for a fact that for example there are different contrast requirements for different levels but those don't seems to be covered in the checklist, just mention the one for level AA that is the minimum. Any thoughts on this? do you think that it's ok as I put it?
Level: doesn't apply
. I thought about putting nothing at all but then it would have looked like it was missing.Preview