Problem/Motivation
In Claro, a visual hover state (blue background) is assigned to table rows and provides a visual cue for which row is active. This feature is only available when navigating by mouse/pointer and should be updated to inform keyboard users.
Steps to reproduce
Set admin theme to Claro and visit an admin page with a table, such as: admin/people
Screenshot of hover state on active row, I placed the cursor (not visible in screenshot) over the row which turns light blue:

Focusing on row with keyboard, the light blue background is missing:

Proposed resolution
Suggested fix: add a selector to the hover style for keyboard users (:focus-within will apply the background color to the row whenever a child link, button, or form element has focus)
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | Screenshot 2024-05-15 at 3.25.23 PM.png | 31.67 KB | camilledavis |
| #4 | simplescreenrecorder-2024-02-28_15.04.59.mkv | 380.34 KB | dineshkumarbollu |
| claro_hover_row.png | 26.64 KB | camilledavis | |
| claro_focus.png | 26.44 KB | camilledavis |
Issue fork drupal-3424162
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3424162-claro-highlighted-row
changes, plain diff MR !6794
Comments
Comment #3
camilledavis commentedComment #4
dineshkumarbollu commentedThe MR fixes the Focusing on row with keyboard, the light blue background,, Attaching the video for that.
Comment #5
camilledavis commentedComment #6
camilledavis commentedComment #7
smustgrave commentedThink this needs an issue summary update.
I do notice that when tabbing through the table the active color does not appear.
But using a macbook spoken content feature I didn't get any notification about the highlight.
Comment #8
camilledavis commentedComment #9
camilledavis commentedVoiceover announces the row (see screenshot), so I removed the reference to screen readers from the description.
Comment #10
smustgrave commentedOkay so think this doesn't need an issue summary actually.
Tabbing through the hover is now activated
LGTM
Comment #16
nod_Committed and pushed 275cf72083 to 11.x and 6178774238 to 11.0.x and c80972a291 to 10.4.x and cc96f97756 to 10.3.x. Thanks!