Repository navigation
Fix tooltip accessibility for keyboard use - #2137
Conversation
… search result pages
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2137 +/- ##
=========================================
Coverage 70.98% 70.98%
Complexity 1723 1723
=========================================
Files 34 34
Lines 4480 4480
=========================================
Hits 3180 3180
Misses 1300 1300 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
joelit
left a comment
There was a problem hiding this comment.
For Vocab info and Concept card this looks good. For Search results, I cannot keyboard navigate the search result information in a way that would make my screen reader read the additional information text content lines for each search result. The way the keyboard navigation behaves in this PR, only the icons are navigable/screen-readable.
One fix would be to place the tabindex="0" inside the li-element instead of the <span class="tooltip-icon">.
Like so: <li class="list-group-item" tabindex="0">
This way the keyboard navigation and the screen reader makes more sense to me (but I'm no expert in the subject).
joelit
left a comment
There was a problem hiding this comment.
On further inspection, I'd say let's go with this PR as it is. Different screen readers give different results, and getting the tooltip visibe with keyboard navigation is also an important improvement.
Reasons for creating this PR
Tooltips for the icons on search result pages and for the property labels on vocab home and concept pages are not accessible by keyboard usage. This PR makes them keyboard focusable which allows viewing them without a mouse.
Link to relevant issue(s), if any
Description of the changes in this PR
Known problems or uncertainties in this PR
I was not able to test tooltips on vocab home page as no vocab in Finto has these overrides.
This PR does not address any issues with skos-xl labels or copy button tooltips.
Checklist
.sr-onlyclass, color contrast)