-
Notifications
You must be signed in to change notification settings - Fork 87
refactor: set aria-modal and tabindex on the confirm-dialog #9980
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
Conversation
206e8e7
to
beb0672
Compare
} | ||
|
||
:host, | ||
:host([hidden]) { | ||
display: none !important; | ||
} | ||
|
||
:host(:focus) ::part(overlay) { | ||
outline: var(--vaadin-focus-ring-width) solid var(--vaadin-focus-ring-color); |
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.
By default this only applies to base styles, as Lumo resets both of these properties:
web-components/packages/vaadin-lumo-styles/src/props/reset.css
Lines 8 to 10 in 8b4ca33
:where(:root, :host) { | |
--vaadin-focus-ring-color: inherit; | |
--vaadin-focus-ring-width: inherit; |
IMO it's ok as in V24, there is no default focus indicator on the overlay part in Lumo.
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.
Should we then also disable aria modal controller for the components we refactor? Or do we do that afterwards? Removing it right away would make testing the PRs a bit safer.
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, I think it sounds reasonable. I will update the PR.
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.
Done.
|
Description
Related to #9759
aria-modal="true"
on thevaadin-confirm-dialog
host elementdisplay: contents
todisplay: block
for Safari VoiceOvertabindex="0"
from the overlay part to the confirm-dialog itselfBoth
display: contents
andtabindex
change are needed to make sure Safari VoiceOver web rotor doesn't list elements outside the dialog, which happened especially when focus was on theoverlay
part in shadow DOM.Type of change