-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: announce file upload events #3389
Conversation
Kudos, SonarCloud Quality Gate passed!
|
expect(scrollTarget.getBoundingClientRect().bottom).to.be.within( | ||
Math.round(itemRect.top), | ||
Math.round(itemRect.bottom) | ||
); |
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.
Not related to the change, but these tests have started failing (on master) due to some sub-pixel rendering change.
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. Let's change from chore:
to something else, maybe fix:
or feat:
This ticket/PR has been released with platform 23.0.0.beta2 and is also targeting the upcoming stable 23.0.0 version. |
Fixes #3365
This PR makes the
<vaadin-upload>
component announce on the following file upload eventsWhen the events occur, focus doesn't leave the "upload files" button but instead, an alert is created using the internal
a11y-announcer
helper. The PR also adds support formode: 'alert'
toa11y-announcer
.Testing tip: the upload dev page has a radio group for switching the outcome of a manual file upload.