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

feat: Side navigation - make sticky and "on this page"

Open brockhigg10 opened this issue 6 months ago • 3 comments

Prerequisites | Prérequis

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

Making the side navigation sticky so it stays visible as the user scrolls through the page?

Add "On this page" as a sub-category on Side Nav OR adding a “^ to top” link or a sticky component for pages using the “On this page”

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

“On this page” navigation is common on government websites. For websites with "on this page"

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

Making the side navigation sticky so it stays visible as the user scrolls through the page?

Add "On this page" as a sub-category on Side Nav OR adding a “^ to top” link or a sticky component for pages using the “On this page”

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

No response

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

rough mockup of the help pages Figma Prototype

Add other relevant resources. | Ajoutez toute autre ressource utile

No response

brockhigg10 avatar Jun 03 '25 16:06 brockhigg10

@brockhigg10 do you have an example of a side-nav that has the "On this page" as a sub-category that we could take a look at?

melaniebmn avatar Jun 17 '25 20:06 melaniebmn

I think it's in the rough mockup Figma prototype.

brockhigg10 avatar Jun 18 '25 14:06 brockhigg10

@brockhigg10 When we released CSS Shortcuts, we also updated the website to have a sidenav which scrolls then sticks. It uses a few CSS shortcuts like position:sticky

daine avatar Nov 21 '25 06:11 daine