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

Add accessible popovers to vulnerability alerts #8624

Merged
merged 3 commits into from
Jun 8, 2021

Conversation

drewgillies
Copy link
Contributor

@drewgillies drewgillies commented Jun 7, 2021

Addresses #8623.

image

setTimeout(function () {
checkmarkImage.popover('destroy');
},
1000);
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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);
});
};
Copy link
Contributor

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.

Copy link
Contributor Author

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!

Copy link
Contributor Author

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.

@drewgillies drewgillies removed the Draft label Jun 8, 2021
@drewgillies drewgillies merged commit 820656c into dev Jun 8, 2021
@drewgillies drewgillies deleted the dg-a11y-popoversonpvaalerts branch June 8, 2021 05:13
@agr agr mentioned this pull request Jun 11, 2021
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants