Open jmuzina opened 1 month ago
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/WD-14041.
This message was autogenerated
After an initial read, I have come to understand the following :
has-menu-open
https://github.com/canonical/vanilla-framework/blob/9e1aff381e97ce29fe0ad7f245a9fbfeceb1f3e0/scss/_patterns_navigation.scss#L840The solution would be to listed to click events on the collapse handler to properly toggle the has-menu-open
class.
Additionally, this raises the question of whether we could have navigation items that do not intend to close the menu (e.g. a toggle as a menu item). In that case the solution would be the same, including a more specific query selector.
Describe the bug
When closing a nested dropdown of a sliding navigation bar, the dark overlay tint that is applied to the body is dismissed, even though a dropdown is still open.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The dark overlay is present whenever a dropdown is opened.
Screenshots
https://github.com/user-attachments/assets/ac5cbb54-6ffc-497c-82cc-7797717961ae
Additional context
I suspect this problem may come from dismissing
is-active
on too many elements in the collapse handler.This was noticed in #5110 in this comment.