question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[a11y]: StructuredListRow does not have a 'row' role

See original GitHub issue

Package

carbon-components-react

Browser

Chrome

Operating System

MacOS

Package version

7.50.0

React version

No response

Automated testing tool and ruleset

IBM Equal Access Accessibility Checker Version 3.1.14

Assistive technology

No response

Description

In PAL’s ObservePlanTile the EditPlanSidePanel children uses a StructuredListRow component, which has several other StructuredListCell children. At the moment the StructuredListRow has the label property and the rows can get selected. Because it is a label instead of the div, the Accessibility Checker alerts us about the missing role.

If we delete the label property, the row will become unselectable, but the violation would be solved.

Image from the original issue itself: Screenshot 2022-01-21 at 16 16 22

WCAG 2.1 Violation

IBM 4.1.2 Name, Role, Value

CodeSandbox example

https://codesandbox.io/s/structuredlistrow-a11y-nq66f-nq66f?file=/src/index.js

Steps to reproduce

It should be visible inside the codeSandbox example right away, but it looks like it can not check this issue inside the iframe tag

Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xiepingpcommented, Apr 7, 2022

Thanks for the fixing! The violation related to the ‘row’ role no longer exists: Screen Shot 2022-04-07 at 12 39 40 PM

1reaction
tay1orjonescommented, Apr 6, 2022

@mashenka123 The violation is not present in the v11/current storybook, and the rows now have a role="row"

image

The 2 violations listed there are false positives from the storybook environment and not the component itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ARIA: row role - Accessibility - MDN Web Docs - Mozilla
An element with role="row" is a row of cells within a tabular structure. A row contains one or more cells, grid cells or...
Read more >
Structured list - Carbon Design System
Structured lists group content that is similar or related, such as terms and definitions. ... <StructuredListRow tabIndex={0}>. <StructuredListCell>. Row 1.
Read more >
ANDI not recognizing ARIA role-based table rows
My task is to make it accessible and, for now, I'm testing with ANDI in Chrome on Windows. It's an Angular application with...
Read more >
row_role (aria) | Accessibility Support - a11ysupport.io
Important: This website does not attempt to establish a standard for how ... row role (aria) ... No expectations have been created for...
Read more >
Recommendations for Single Page Applications
If your need can be met with the help of a standard site you don't need to succumb to the hype. A standard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found