Skip to content

Add role="..." to Table family components when component="..." is specified #20431

@ypresto

Description

@ypresto

Summary 💡

For table accessibility, when component="..." is specified to Table family components, it'd be better to render role="..." prop.

Examples 🌈

<Table component="div" /> will be <div role="table"></div>.

Motivation 🔦

I want to make the entire row <a> tag to support some browser features like drag-and-drop link and new tab shortcut (cmd+click).

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: tableChanges related to the table.type: new featureExpand the scope of the product to solve a new problem.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions