-
Notifications
You must be signed in to change notification settings - Fork 788
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
grid vs. treegrid allowed row attributes #2794
Comments
I'm not going to lie, I'm having a lot of difficulty navigating that treegrid. I'm trying to test screen reader support but any type of navigation I'm trying isn't consistent and makes it hard to use. For example, in IE11/JAWS I tab to the start of the tree grid, which reads the first row, tells me it's expanded, and that it's 1, 1 of 1 (which I assume are the I'm not very well versed in navigating treegrids with expansions so maybe I'm doing something wrong? |
JAWS and other screen readers will read level, expand/collapse, row, and column information conditionally based on the type of interaction you're doing. I'd also recommend using Chrome over IE11 for treegrids :). Does the specific screen reader UX matter for this issue? The |
Just looking at what each screen reader does with the attributes is all. |
@straker I just wanted to follow up -- is there any other info you'd need for this issue? Do you have a sense of when it might be fixed, or if an external PR would be accepted if one were made? I'm very aware that treegrid support in general is all over the place, but I can't think of a reason to allow a treegrid role but flag specific valid attributes on them. |
Sorry we've been really busy with something so haven't even had a chance to look further into this. With axe-con coming up and everything on our plate, I'm not sure we could work on this any time soon. However, I can't see any adverse problems with supporting the attributes (though @WilcoFiers might have a different opinion) so if you're up for it you could create a PR to add them and that would probably get it in sooner. One of the major problems this issue faces is our code does not handle allowed attributes on roles only when those roles are descendants of a specific role. |
@smhigley You bring such interesting questions! Really appreciate these. Thank you!
I like the idea of restricting those attributes to treegrid as well. If someone uses aria-level on Having seen this I think we should seriously consider flagging aria-level and aria-expanded as unsupported for rows. I can't get either of these announced at all in VO. It'll announce expanded/collapsed on the cell (example 3), but not on the row - or at least not until after you've tried to activate it, which is no help at all. Not knowing if a row is expanded or not, or even if it can be expanded at all is a serious problem. Similarly, not knowing what level a row is at seems like a major issue. Treegrids are confusing even if they work as intended, let alone if you're missing half the info. I'd like to see some more tests done on this, if VO is an outlier here, we may mark it for review instead. I would be fine with that, but I don't think we should continue to pass ara-expaned / aria-level on row the way we're doing now. |
I completely agree with @smhigley here. We're trying to build out this structure in Red Hat's design system, PatternFly, and we've been running into this issue. We currently have axe-core running against our CI/CD build so the PR we had that follows the previous example shared, was being flagged as failing. (This is a preview of our implementation.) We set it to ignore that specific example since it seems to be the best structure we tested, but we worry about the other products who might use this variation. We've been encouraging Red Hat products to also check their build against axe-core so we're concerned that they might see these failures and be confused. I'd love to see these attributes supported! |
We recently merged a PR that allows |
We recently merged a PR that should now restrict |
Hi, I am facing same issue. What version do we need to use in order to fix the issue. |
Latest version should have the fix, but I believe 4.3.4 was the release that introduced this fix. |
Expectation:
aria-posinset
,aria-setsize
,aria-expanded
, andaria-level
should all be allowed onrole="row"
, but only when descending from atreegrid
.Actual:
aria-posinset
andaria-setsize
always cause an allowed attribute error onrow
, whilearia-expanded
andaria-level
never do.You can see the false positives on the aria-practices example on this page: https://w3c.github.io/aria-practices/examples/treegrid/treegrid-1.html. If you change the parent role to
grid
then run the test again, you can see thataria-expanded
andaria-level
are not flagged.Motivation:
Valid treegrid attributes are getting errors flagged, resulting in a stream of bad bugs, and some easily-caught errors like
aria-expanded
oraria-level
on grids and tables are not flagged.The text was updated successfully, but these errors were encountered: