NuGet / NuGetGallery

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
https://www.nuget.org/
Apache License 2.0
1.52k stars 643 forks source link

Solve Package Page Tooltip Accessibility Bugs and Framework Filter Ch… #9933

Closed Goodyear2017 closed 1 month ago

Goodyear2017 commented 2 months ago

Accessibility issues on production:

1.Narrator is unable to read the tooltip content when hover or use tab key to activate "Framework" tooltip. 2.When press tab key on package badges, screen reader reads the aria label content but without tooltip display. 3.When any of the "Framework filter mode" checkbox selected and dropdown open, user unable to use up and down arrow key to move the selection. Solution: 1.Disable Bootstrap popover JavaScript on framework filter and support framework badges, keep the popover classes and layout, add JavaScript function to make the tooltip popup, narrator can read the tooltip.

  1. Add up and down arrow key JavaScript function to make users are able to use arrow keys to move between framework filter mode checkboxes. Bug links:

1.https://devdiv.visualstudio.com/DevDiv/_queries/edit/?tempQueryId=91c293b3-665c-4cb3-876f-e7e4c119b7d1&id=1970893 2.https://devdiv.visualstudio.com/DevDiv/_queries/edit/?tempQueryId=91c293b3-665c-4cb3-876f-e7e4c119b7d1&id=1970906 3.https://devdiv.visualstudio.com/DevDiv/_queries/edit/?tempQueryId=91c293b3-665c-4cb3-876f-e7e4c119b7d1&id=1987964 Screenshots and video Framwork tooltip Before image

Package badge tooltip before: image

Package badge tooltip after: image Before: before.webm After: after.webm