gcds-components
gcds-components copied to clipboard
feat: Header - skip-to-nav slot examples
Prerequisites | Prérequis
- [x] I've read the Contributing Guidelines. | J’ai lu les Lignes directrices sur les contributions.
- [x] I agree to follow the Code of Conduct. | J’accepte de me conformer au Code de conduite.
- [x] I've searched for existing issues that already report this problem, without success. | J’ai vérifié parmi les tickets (issues) existants que ce sujet n’avait pas déjà été soumis.
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