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

bug: gcds-side-nav/gcds-top-nav can be stuck open when resizing

Open radmorecameron opened this issue 1 month ago • 1 comments

Prerequisites | Prérequis

GC Design System Components Package and Version | Paquet et version des composants de Système de design GC

[email protected]

Current Behavior | Comportement observé

  1. resize window to mobile size
  2. click on "Menu" button that appears
  3. With the menu open, resize the window to desktop size
  4. Sometimes the Menu is stuck open and only the close button disappears

Expected Behavior | Comportement attendu

  1. resize window to mobile size
  2. click on "Menu" button that appears
  3. With the menu open, resize the window to desktop size
  4. Menu shouldn't be stuck open

System Info | Information sur le système

Microsoft Edge

Steps to Reproduce | Étapes pour reproduire le bogue

  1. resize window to mobile size
  2. click on "Menu" button that appears
  3. With the menu open, resize the window to desktop size
  4. Sometimes the Menu is stuck open and only the close button disappears

gif showing the error

Code Reproduction URL | URL de reproduction du code

No response

Additional Information | Informations supplémentaires

I don't think code reproduction is necessary? It happens on https://design-system.alpha.canada.ca/ . Since it only doesn't always happen (but often does), it might be a race condition in javascript?

radmorecameron avatar Nov 06 '25 16:11 radmorecameron

Would also like to add that clicking Esc won't close it at desktop size

radmorecameron avatar Nov 06 '25 16:11 radmorecameron

This issue should now be resolved in our v0.45.0 release.

ethanWallace avatar Dec 09 '25 16:12 ethanWallace