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.

[DataTable] OverflowMenu doesn't have keyboard accessible styles

See original GitHub issue

Detailed description

When using an OverflowMenu component inside of a DataTable as highlighted here, the keyboard actions of the OverflowMenu do not work.

Once the menu is open, the user is not able to use their arrow keys to select an OverflowMenuItem option as one would be able to in an OverflowMenu that is not inside of a DataTable because there are no visual indicators of which option is currently active.

It is expected that a user would be able to make a selection inside of an OveflowMenu in a DataTable just using their keyboard.

What version of the Carbon Design System are you using? Version 10

Steps to reproduce the issue

  1. Go to sandbox https://codesandbox.io/s/carbon-react-datatable-overflowmenu-a11y-bug-c92rz
  2. Using the keyboard only, open any overflow menu on the table
  3. Use arrow keys to attempt to select an action
  4. Notice that there are no visual indicators of which action is active to be selected

Additional information

Keyboard usage of standalone OverflowMenu Kapture 2019-07-11 at 15 36 36

Keyboard usage of OverflowMenu inside of a DataTable Kapture 2019-07-11 at 15 38 15

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
diego-codescommented, Jul 12, 2019

Adding the data-floating-menu-primary-focus attribute to the DOM node works! It appears that it is not applied to the menu in the DataTable by default then.

0reactions
stale[bot]commented, Aug 17, 2019

As there’s been no activity since this issue was marked as stale, we are auto-closing it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Accessibility of column visibility button and menu - DataTables
Menu container has the appropriate "menu" role. * Keyboard focus returns to the column visibility button when closing menu with Esc key.
Read more >
Make table row or cell be read by a table as clickable
Hi i'm working on a table that i want to improve it's accesibility, but the thing is that it was created with the...
Read more >
Accessibility – Carbon Design System
Add styling to tabbable elements on hover and focus, so that keyboard-only users can have a clear visual of where they are navigating....
Read more >
Tables | Introduction to Accessibility - A11y-101
Our simple table is a <table> with some rows ( <tr> ) and some cells ( <td> ) in them. Each table we're...
Read more >
Data Tables - Lightning Design System
To initialize a data table, apply the slds-table class to the table ... The first non-actionable (meaning that doesn't contain a checkbox or...
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