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

fix(a11y): remove redundant rowgroup role from tbody element #1907

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

gpbl
Copy link
Owner

@gpbl gpbl commented Sep 12, 2023

Context

The role="rowgroup" attribute added to the <tbody> element in Table.tsx is redundant and it may cause html validators to fail. (e.g. #1903).

<tbody className={classNames.tbody} style={styles.tbody} role="rowgroup">

Analysis

The role attribute can be removed as it is the implicit ARIA role for tbody.

Solution

Remove the role and update the test screenshots.

@gpbl gpbl linked an issue Sep 12, 2023 that may be closed by this pull request
@gpbl gpbl merged commit 6896a8d into main Sep 12, 2023
11 checks passed
@gpbl gpbl deleted the gpbl/issue1903 branch September 12, 2023 11:42
@gpbl gpbl changed the title fix(a11y): Remove rowgroup role from tbody element fix(a11y): remove redundant rowgroup role from tbody element Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: redundant "rowgroup" role on <tbody>
1 participant