Skip to content

Skiplink target #722

@lee-richardson-infinityworks

Description

Hi,
I'm working on something using the NHS React Components (https://github.com/NHSDigital/nhsuk-react-components) which is based on this repo's work.

Their skip link implementation includes the fix for the iOS VoiceOver bug. I have found that screen readers (NVDA and Chrome's. I don't have iOS access) will quite randomly decide whether or not to read just the header or the content under the header as well. If I changed it to focus on the element of the href prop it always reads the content.

Could someone give me some more details on how the bug fix works? Is it necessary to use the h1 or would it also work to manually focus on main content element? Essentially can we get the functionality of a normal skip link to the main content, without invoking the bug?

Thanks.

Metadata

Metadata

Labels

code improvementsAny changes that improve but do not alter the appearance of the sitejavascriptPull requests that update Javascript codeskip link

Type

No type
No fields configured for issues without a type.

Projects

Status

Done - 2025

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions