Skip to content

Conversation

@deiberchacon
Copy link
Contributor

Why

Screen readers and accessibility tools do not inherently have context about the meaning or purpose of the table itself.

I opened a feature request for this #1272 and had some time to work on it.

What

This PR adds an optional ariaLabel string property to the table component. This property sets the aria-label attribute, providing context for screen readers. If ariaLabel is not provided, the aria-label attribute will not be added.

This change has no visual impact, just useful for accessibility.

@netlify
Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for react-data-table-component ready!

Name Link
🔨 Latest commit 0cbf382
🔍 Latest deploy log https://app.netlify.com/sites/react-data-table-component/deploys/67abc5aebfe5bf0008139e7f
😎 Deploy Preview https://deploy-preview-1273--react-data-table-component.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jbetancur
Copy link
Owner

Thank you for the feature/pr! LGTM!

@jbetancur jbetancur merged commit 499a05c into jbetancur:master Feb 25, 2025
4 checks passed
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.

3 participants