-
Notifications
You must be signed in to change notification settings - Fork 8.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
[WIP] [ML] (Accessibility) Read summary info for File contents and Summary stats #31117 #34686
Conversation
Pinging @elastic/ml-ui |
💚 Build Succeeded |
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.
Please take a look at the comments
x-pack/plugins/ml/public/file_datavisualizer/components/file_contents/file_contents.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/ml/public/file_datavisualizer/components/file_contents/file_contents.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/ml/public/file_datavisualizer/components/file_contents/file_contents.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/ml/public/file_datavisualizer/components/analysis_summary/analysis_summary.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/ml/public/file_datavisualizer/components/analysis_summary/analysis_summary.js
Outdated
Show resolved
Hide resolved
Co-Authored-By: rockfield <philipp.b@ya.ru>
Co-Authored-By: rockfield <philipp.b@ya.ru>
💚 Build Succeeded |
@jgowdyelastic Thanks for your review! I've renamed the function as well as have added object destruction as you suggested. |
@maryia-lapata, thank you for the review! I've applied suggestion you made, moreover have updated translate() parameters and defaultMesssage exactly as you suggested. |
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.
LGTM
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.
LGTM, checked with VoiceOver
@rockfield @maryia-lapata the various parts of the Summary panel are now tabbable, with |
@peteharverson thanks for pointing that out! I'm not sure whether there is a requirement for that,
|
Hello, It does due to the fact that the working with page content happens in a slightly different way neither switching focus from one item to another. For instance, for VoiceOver those commands are:
For NVDA (Win) keys are slightly different:
Also, in this mode the The way we used to see this process (hitting tab to go throughout the content) is not supposed to work this way. Since all described above, I suggest that I should decline this PR and close initial #31117 issue. On the following video you can see how the initial implementation (before this PR) works with VoiceOver on Mac: |
I confirmed that using NVDA the Summary section is read out line by line before this PR (using @rayafratkina can you confirm that it is ok to close this PR without merging, and close the original issue #31117, as it seems that using screenreaders NVDA / VoiceOver on Mac, that this is working correctly as-is? |
@peteharverson @rockfield yes, it's ok to close the original issue without making any changes. |
I'm closing this PR as the initial implementation is correct, — explanation is in the comment above. |
Fix: #31117
Summary
I added aria labels to inner
<span/>
s as well as used titleProps parameter forEuiDescriptionList
to add tab indexes to<dt/>
elements in order to make them focusable.