Skip to content

feat: add ability to turn off (or remove entirely) focusing of data grid cells in DataGrid #4468

@Stephen-Lamb

Description

@Stephen-Lamb

🙋 Feature Request

I would like the ability to be able to turn off cells in a data grid being focusable. We have some data grids in our app that contain focusable elements such as buttons and text fields, and because of the data grid cells also being focusable, it is taking double the amount of tab key presses to move between the focusable elements in the grid.

To be honest I don't see data grid cells being focusable as particularly useful, as when for example the data grid cell contains text you can't seem to do anything useful with it such as press CTRL-C to copy the text. But maybe it's an a11y thing. However, being able to focus the column headers is useful, as then you can change for example the sort order using the keyboard.

🤔 Expected Behavior

😯 Current Behavior

💁 Possible Solution

🔦 Context

We have some data grids in our app that have columns that contain text but also has a column that is a text field. Product management is complaining that it takes two tab key presses to move between the text fields (caused by the data grid cells also being focusable). If we could turn off data grid cells being focusable then we could move between text fields in the grid with one tab key press.

💻 Examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions