Skip to content

Main content is clickable #1772

@Ovgodd

Description

@Ovgodd

Bug Report

Problematic behavior

After adding “Skip to content”, the main area becomes clickable and shows focus styling on mouse click. It should only be focusable via keyboard.

Expected behavior/code
The skip link should move keyboard focus to main; mouse clicks shouldn’t focus it or show an outline.

Steps to Reproduce

  1. Open Docs (home or any doc page)
  2. Click inside the main content area
  3. See the outline/focus appear

Possible Solution
Apply focus styling only on :focus-visible and keep tabIndex for keyboard navigation.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions