?
avatar YatharthVyas
YatharthVyas
23 May 2021

Steps to reproduce the issue

  1. Visit the Global Configuration page in the Backend.
  2. Switch to the mobile view using Devtools.
  3. Refresh the page while being in the mobile view or navigate outside and back to this page to imitate how a mobile user would enter this page.
  4. Notice that the sidebar dropdown is initially expanded (Contrary to 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)

Expected result

When you resize the screen after it has loaded, then the sidebar is initially hidden and the toggle button behaves as intended.

config_menu2

Actual result

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.

config_menugif

System information (as much as possible)

Google Chrome on Windows 10

avatar YatharthVyas YatharthVyas - open - 23 May 2021
avatar joomla-cms-bot joomla-cms-bot - change - 23 May 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 May 2021
avatar PhilETaylor
PhilETaylor - comment - 23 May 2021

Confirmed on real mobile iPhone 12

Ecamm.Live.Recording.on.2021-05-23.at.13.14.38.mov
avatar eopws
eopws - comment - 23 May 2021

4. class changes from sidebar-nav to sidebar-nav collapsing and then to sidebar-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?

avatar eopws
eopws - comment - 23 May 2021

IMHO, the "toggle menu" button has to have margin-left.

avatar infograf768
infograf768 - comment - 24 May 2021

IMHO, the "toggle menu" button has to have margin-left.

If it does in LTR, then it should have a margin-right in RTL

avatar YatharthVyas
YatharthVyas - comment - 24 May 2021
  1. class changes from sidebar-nav to sidebar-nav collapsing and then to sidebar-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.

image

avatar YatharthVyas YatharthVyas - change - 24 May 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-05-24 14:10:53
Closed_By YatharthVyas
avatar YatharthVyas
YatharthVyas - comment - 24 May 2021

Closing in favour of #33877 (#34158 (comment))

avatar YatharthVyas YatharthVyas - close - 24 May 2021

Add a Comment

Login with GitHub to post a comment