-
Notifications
You must be signed in to change notification settings - Fork 841
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
Added aria-describedby to EuiFilePicker #2919
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
Hey Anish! Thanks for this PR! I think I wasn't clear enough in the issue, sorry! I'm going to try to explain again. (Unfortunately, I think this will require a bit of a refactor of your work.) So I think this issue can be broken down into two tasks:
Hopefully that makes more sense and feel free to ask if anything isn't clear before jumping into the code! |
@myasonik all changes have been done |
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.
Thanks for the quick turnaround!
I left a few thoughts on what you've got here now.
Co-Authored-By: Michail Yasonik <michail@yasonik.com>
Co-Authored-By: Michail Yasonik <michail@yasonik.com>
@myasonik Changes have been made |
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.
Looks good to me!
Please wait for an EUI team member to approve this PR before merging though (all the other reviewers are EUI team)
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2919/ |
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.
The CI failure is due to outdated test snapshots. This is expected, as markup changes like the ones in this PR need to be confirmed.
Run yarn test
locally and you'll be prompted to review the snapshot expectations, and given a command to update outdated snapshots.
@thompsongl Test Snapshot has been updated |
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.
Just a quick problem with the changelog
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2919/ |
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.
Ah yes. The CI failure reminded me that htmlIdGenerator
needs to be mocked in Jest tests, otherwise the id will change every run.
Add the following to src/components/form/file_picker/file_picker.tsx
// Mock the htmlIdGenerator to generate predictable ids for snapshot tests
jest.mock('../../../services/accessibility/html_id_generator', () => ({
htmlIdGenerator: () => () => 'htmlId',
}));
And then you'll need to update the snapshots once again.
Hopefully we'll come up with a less manual solution than this soon
@thompsongl changes Done 👍 |
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2919/ |
Summary
Fixes :#2917
Checklist