-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[test][data grid] aria-labels missing from mui-x #15074
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
The a11y tree look correct: so it looks like this change is right, it's a simplification. So it looks like your question is about how to migrate the tests. I guess you are looking to use: screen.getByRole('columnheader', { name: /first name/i }) this should be invariant, meaning work in both MUI X v6 and v7, I have tested this with https://testing-playground.com/. |
Brilliant, that will work. We just wanted to make sure it was intentional. |
Glad to hear it @annawatson-wk - I'll close the issue but feel free to re-open if you have any follow up questions. |
This comment was marked as outdated.
This comment was marked as outdated.
I think this was closed a bit prematurely.
@annawatson-wk Yes, it fixes a bug, see #14482.
Could you share how you changed your tests? This would hopefully help the next developers who migrate from v6 to v7. Thanks.
I don't know about this. |
This was probably a poor choice of words. We had a consumer unit testing aria-labels. |
@annawatson-wk Alright, if you have more details about the pickers aria-label change, or test change, we can continue to discuss this, otherwise, it looks like we can close. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @annawatson-wk How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Steps:
Current behavior
MUI X components don't have aria-labels anymore.
https://mui.com/x/react-data-grid/#mit-license-free-forever
Expected behavior
MUI X components should have aria-labels.
https://v6.mui.com/x/react-data-grid/#mit-version-free-forever
Context
We had a couple of unit tests fail accessibility-wise for
columnheader
when upgrading to the latest version of mui-x from 7.13.0. Looking at it, it appears as though all the aria-labels from Data Grid are gone. Browsing the mui website, it looks like Date Picker is also effected. Is this intentional?Your environment
npx @mui/envinfo
Search keywords: aria-label aria label data grid pro date picker
Order ID: 82849
The text was updated successfully, but these errors were encountered: