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

Toast in EuiGlobalToastList doesn't disappear until the focus leave #1953

Closed
bollinic opened this issue May 22, 2019 · 2 comments
Closed

Toast in EuiGlobalToastList doesn't disappear until the focus leave #1953

bollinic opened this issue May 22, 2019 · 2 comments

Comments

@bollinic
Copy link

I am creating a button to hide a toast from <EuiGlobalToastList>, I am using dismissToast to hide the toast.

The toast won't dissapear until I focus out because of
https://github.com/elastic/eui/blob/master/src/components/toast/global_toast_list.js#L237

I can understand pausing the timer onMousover but pausing with focus is blocking a common scenario like I want to close the toast with a specific button

@bollinic bollinic changed the title EuiGlobalToastList doesn't disappear until the focus leave Toast in EuiGlobalToastList doesn't disappear until the focus leave May 22, 2019
@snide
Copy link
Contributor

snide commented May 22, 2019

This is on purpose because of accessibility. #717

@bollinic
Copy link
Author

sounds good

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

No branches or pull requests

2 participants