-
Notifications
You must be signed in to change notification settings - Fork 77
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
fix(alert): auto-dismissible retains close button and dismisses timer while a user is hovering over #5872
fix(alert): auto-dismissible retains close button and dismisses timer while a user is hovering over #5872
Conversation
… while a user is hovering over
… be present when auto-dismiss is true
…auses on mouseOver and resumes on mouseLeave
…number of queued alerts with a calcite-chip
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.
Looking good!
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.
👍
Extremely awesome work @Elijbet !! The only thing I notice is that while it pauses while hovering, it's not pausing when focus is inside the alert and the cursor is not. For instance, if there is a slotted |
Yeah, that's a good point, I don't think I thought of that. Lets log it as an issue and I'll address that as well. |
* master: (55 commits) build: update browserslist db (#5986) docs: update component READMEs (#5980) 1.0.0-next.670 refactor(input-date-picker,date-picker)!: Removing deprecated locale properties (#5977) 1.0.0-next.669 refactor(input-date-picker)!: Remove deprecated active property (#5974) 1.0.0-next.668 fix(modal, popover): Add `disableFocusTrap` property to toggle focus trapping. (#5965) 1.0.0-next.667 refactor(input-time-picker)!: Remove deprecated active property (#5970) docs(changelog): fix breaking change indent levels (#5973) 1.0.0-next.666 refactor(time-picker)!: Remove deprecated locale property (#5962) 1.0.0-next.665 fix(input, input-number, input-text): Fix infinite loop crashing browser. #5882 (#5961) test(floating-ui): fix type errors (#5966) docs: update component READMEs (#5964) 1.0.0-next.664 fix(alert): auto-dismissible retains close button and dismisses timer while a user is hovering over (#5872) chore(color-picker): add opacity string (#5959) ...
Related Issue: #3338
Summary
If an
alert
isauto-dismissible
,keep the
close
button there, a user may want to dismiss the alert before the dismiss duration completes.pause the dismiss timer while a user is hovering over, or focusing on an element within an alert. Although disincentivized, apps may put actions or links inside of an
auto-dismissible alert
.