Skip to content
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

Toasts should not autohide when hovered or when focus is inside #32820

Closed
patrickhlauke opened this issue Jan 17, 2021 · 0 comments · Fixed by #33221
Closed

Toasts should not autohide when hovered or when focus is inside #32820

patrickhlauke opened this issue Jan 17, 2021 · 0 comments · Fixed by #33221

Comments

@patrickhlauke
Copy link
Member

For accessibility and usability reasons, if an autohiding toast is hovered with the mouse, or when :focus-within, it should prevent the autohiding / reset the delay (so when not hovered anymore / when focus moves out again, the delay kicks in again and eventually the toast does hide).

Due to :focus-within, probably can only target v5 - unless extra work is done in JS to check document.activeElement and to verify if it's a child element of the toast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants