fix(table): various accessibility issues#2885
Conversation
🦋 Changeset detectedLatest commit: db81c44 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Commitlint tests passed!More Info{
"valid": true,
"errors": [],
"warnings": [],
"input": "fix(table): fix table accessibility issue-2813"
} |
✅ Deploy Preview for patternfly-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
zeroedin
left a comment
There was a problem hiding this comment.
So enacting the requested changes myself locally I think I opened a broader issue here. Because we are using button as an expander, and using aria-expanded on it we equally need a aria-controls which isn't currently being applied. Also due to the fact the element being opened#expansion is across shadow dom roots I'm going to assume we are going to run into cross root aria issues with that.
@adamjohnson when you get the chance lets review this together.
|
can the button's |
1e2f9a1 to
7f189ae
Compare
- Correct ARIA role for column headers (`colheader` -> `columnheader`) - Add accessible label to the row expand/collapse toggle button - Add `aria-controls` linking the toggle button to its expansion content Closes patternfly#2813 Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0136786 to
27a6875
Compare
Fix accessibility features for the pf-table component, including column header role and accessible label for the row toggle button.
What I did
Before:



After:



Before:

After:
