-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DataGrid] Fix VoiceOver reading the column name twice #14482
Changes from all commits
8eaaa96
70703f0
1ad6a1c
16ad8e7
ae67fd4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -109,7 +109,6 @@ const GridGenericColumnHeaderItem = React.forwardRef(function GridGenericColumnH | |||||||||||||||||||||||||||||||||||||||||||||||||||||
tabIndex={tabIndex} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
aria-colindex={colIndex + 1} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
aria-sort={ariaSort} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
aria-label={headerComponent == null ? label : undefined} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I looked into this issue some time ago, but couldn't make it work properly. Screen.Recording.2024-09-04.at.19.24.04.movAny idea why it starts reading the column name twice? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which keys are you using to navigate the header items? 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found the reason mui-x/packages/x-data-grid/src/components/columnHeaders/GridColumnHeaderTitle.tsx Lines 77 to 85 in cf441ec
we don't pass it here, but consoling mui-x/packages/x-data-grid/src/components/columnHeaders/GridColumnHeaderTitle.tsx Lines 34 to 50 in cf441ec
shows For string content, Update I think that the voice over wants to connect header name with the cell when you use Anyway, I think that we can ignore that issue and have at least regular arrow key navigation fixed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Ah makes sense, I tested with the arrow keys only, not the virtual cursor.
Strange bug.
I tested again with the latest changes and it's working as expected with arrow keys at least 👍 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
{...other} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
<div | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be unrelated to this PR but Safari [Version 17.5 (19618.2.12.11.6)] reads normal cells twice too (used to do for header cells too but fixed with this PR)
voiceover-safari.mp4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is what I saw as well
since it is not mentioned in the original issue, I have opened a separate PR to address this