gcds-components icon indicating copy to clipboard operation
gcds-components copied to clipboard

feat: Header - skip-to-nav slot examples

Open daine opened this issue 1 month ago • 0 comments

Prerequisites | Prérequis

Describe the feature request. | Décrivez la fonctionnalité demandée

On the Header component, there is a skip-to-nav slot that one can use to create a custom "Skip to" navigation link.

While the Header component provides a skip-to-href which can be used to provide a custom href for the "Skip to main content" to go to, the only way to change the wording of the link would be to provide custom HTML to be used in the skip-to-nav slot.

A more straightforward way to recreate or customize the HTML using this slot would improve usability.

Describe the use case. | Décrivez les cas d’utilisation

A user has reported that they want the Skip To link to say "Skip to About government"

Describe the preferred solution. | Décrivez la solution souhaitée

Either:

  • Provide a code example of how to use the slot in a way that it replicates the behaviour and look of the default GCDS Header's Skip To Main Content link, or:
  • Provide an easy way to customize a custom label and href for the Skip to...slot or element

Describe all alternatives. | Décrivez toutes les solutions possibles

No response

Provide related code or examples. | Fournissez du code ou des exemples pertinents

No response

Add other relevant resources. | Ajoutez toute autre ressource utile

No response

daine avatar Nov 25 '25 21:11 daine