Skip to content

Conversation

@robgasc
Copy link
Contributor

@robgasc robgasc commented Jan 27, 2026

…link that is lending to confusing tabbing.

How this addresses the issue

The current hoverbox responds oddly to keyboard tabbing. The expectation seems to be that the user will hover the main container. This does not work for keyboard tabbing, as the there is no tab element that matches the css properties. This pr updates the css to instead target focus-within, a newer css property with widespread support, that allows for any subelement in the hoverbox container to trigger the show the box css. This does not directly address the keyboard tabbing. Instead, the way the link to the news story is rendered is updated instead, so that now the title is properly a link, and a second hidden title is removed to reduce keyboard tabbing confusion. This allows tabbing to a sub-element, and triggering of the show the text css.

Testing steps

  1. Create a page with a hoverbox news display on it
  2. Tab through page into hoverbox
  3. Hoverbox should open when tabbed into

@robgasc robgasc added the 4.x Work that needs to be done on the 4.x branch label Jan 27, 2026
@robgasc robgasc linked an issue Jan 27, 2026 that may be closed by this pull request
@trubach trubach self-requested a review January 28, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.x Work that needs to be done on the 4.x branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hvrbox News display has issues with keyboard navigation

2 participants