[DataGrid] Make column header menu button aria-labels unique#16796
Conversation
Localization writing tips ✍️Seems you are updating localization 🌍 files. Thank you for contributing to the localization! 🎉 To make your PR perfect, here is a list of elements to check: ✔️
Deploy preview: https://deploy-preview-16796--material-ui-x.netlify.app/ |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…//github.com/owais635/mui-x into unique-aria-labels-column-header-menu-button
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
@owais635 just pushed a small change that adds a new locale property specifically for the |
kenanyusuf
left a comment
There was a problem hiding this comment.
Thank you for your contribution 👍
| columnMenuLabel: 'Column options', | ||
| columnMenuAriaLabel: (columnName: string) => `${columnName} column options`, |
There was a problem hiding this comment.
Nitpick: Since we consistently call it column menu in the docs (example), probably this would be more relatable?
The idea is to leave the "menu" part to screen readers? I played with VoiceOver and calling it column menu made more sense.
| columnMenuLabel: 'Column options', | |
| columnMenuAriaLabel: (columnName: string) => `${columnName} column options`, | |
| columnMenuLabel: 'Column menu', | |
| columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`, |
There was a problem hiding this comment.
Since we consistently call it column menu in the docs (example)
I think this is a strong argument to refer to it as a menu rather than options. I'm going to leave the columnMenuLabel string as it is currently in master: "Menu". There is enough of a visual cue that it is a menu for columns given where the button is located.
The only change then will be adding a separate locale string for the aria-label which I will make ${columnName} column menu as you have suggested.
|
Cherry-pick PRs will be created targeting branches: v7.x |
Fix: #16454.