aria-expanded="false"
) and when you press the toggle button, it goes through an animation to stay in the expanded state (class changes from sidebar-nav
to sidebar-nav collapsing
and then to sidebar-nav collapse show
)When you resize the screen after it has loaded, then the sidebar is initially hidden and the toggle button behaves as intended.
On refreshing the page in mobile view (without resizing), the menu is expanded by default and the first toggle button press doesn't collapse it.
Google Chrome on Windows 10
Labels |
Added:
?
|
4. class changes from
sidebar-nav
tosidebar-nav collapsing
and then tosidebar-nav collapse show
I have tried to add sidebar-nav collapse show
to the list initially and it works and doesn't ruin anything, but I don't know whether it is a good solution or not?
IMHO, the "toggle menu" button has to have margin-left.
IMHO, the "toggle menu" button has to have margin-left.
If it does in LTR, then it should have a margin-right in RTL
- class changes from
sidebar-nav
tosidebar-nav collapsing
and then tosidebar-nav collapse show
I have tried to add
sidebar-nav collapse show
to the list initially and it works and doesn't ruin anything, but I don't know whether it is a good solution or not?
This could be a possible fix but I think the person who wrote this code intended to keep the menu toggled off by default. I think maybe an alternate fix (not sure if better) could be executing the 'resize' JS event handler during page load.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-05-24 14:10:53 |
Closed_By | ⇒ | YatharthVyas |
Closing in favour of #33877 (#34158 (comment))
Confirmed on real mobile iPhone 12
Ecamm.Live.Recording.on.2021-05-23.at.13.14.38.mov