-
Notifications
You must be signed in to change notification settings - Fork 641
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
Add accessible popovers to vulnerability alerts #8624
Conversation
setTimeout(function () { | ||
checkmarkImage.popover('destroy'); | ||
}, | ||
1000); |
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.
Is 1 second enough for pop over dismissal? Is that a standard timeout value, do we use the same values across our site?
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.
We do--this is what we're using on the existing popover on reserved checkmarks on the package list.
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.
(note that the timer starts ticking on mouseleave)
}, | ||
1000); | ||
}); | ||
}; |
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.
Its been a while I've worked on UI changes, but don't we have a common.js or something that is loaded by all the scripts where you could add this function in and share it across different JS scripts?
see nuget.copyTextToClipboard
function that we use in similar way.
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.
I'll check it out--thanks!
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, that worked well. I've included this change.
6422994
to
7b77e9b
Compare
Addresses #8623.