No Code Attached Yet ? bug
avatar mariantanase
mariantanase
30 May 2022

Steps to reproduce the issue

Clean installation of joomla 4.1.4 without any changes.
I noticed that on screens with resolutions between 768px (medium) and 992px (large), the navigation menu does not collapse to hamburger menu.

Expected result

Actual result

joomla-breakpoint

System information (as much as possible)

Joomla 4.1.4
PHP 8.0.13
MySQL 8.0.27

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar mariantanase mariantanase - open - 30 May 2022
avatar joomla-cms-bot joomla-cms-bot - change - 30 May 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 May 2022
avatar mariantanase mariantanase - change - 30 May 2022
The description was changed
avatar mariantanase mariantanase - edited - 30 May 2022
avatar chmst chmst - change - 30 May 2022
Labels Added: ?
avatar chmst chmst - labeled - 30 May 2022
avatar ChristineWk
ChristineWk - comment - 30 May 2022

That could be a possible solution. Written by a user in the German Joomla forum:

`@media (min-width: 768px) and (max-width: 991px) {
.navbar-expand-md .navbar-collapse:not(.show) {
display: none !important;
}
}

@media (max-width: 991px) {
.navbar-expand-md .navbar-toggler {
display: block !important;
}
}
`

avatar mariantanase
mariantanase - comment - 30 May 2022

Thanks @ChristineWk
This fix resolved the issue. However, it would be better if it can be implemented in the future directly in the joomla core.

avatar ChristineWk
ChristineWk - comment - 30 May 2022

@mariantanase

Unfortunately, I can't tell you how to proceed here. let's wait for more information

avatar mariantanase
mariantanase - comment - 7 Jun 2022

I notice that the issue is still present on the most recent nightly build, Joomla_4.2.0-beta1-dev-Development-Full_Package.

avatar TAGarrison
TAGarrison - comment - 8 Oct 2022

I don't know if it helps or not, but the same issue includes sidebars - they are not hidden in the 1024px mobile size, which is the iPad Pro 12.9 inch. It works in all other sizes properly.
I can also confirm that the menu issue is still a problem. I found the CSS here and that fixed things for me, but not the sidebar. You can hide the bar itself, but you cannot hide the container, so there's a huge white-bar in the iPad Pro 12.9.

avatar Sieger66
Sieger66 - comment - 5 Jan 2023

I think it is a bug in the PR #36900
in line 18 in templates/cassiopeia/html/mod_menu/collapse-metismenu.php

-md in class and before Joomla 4.1.3 it was -lg

I think better is:

<nav class="navbar navbar-expand-lg" aria-label="<?php echo htmlspecialchars($module->title, ENT_QUOTES, 'UTF-8'); ?>">


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37926.
avatar Hackwar Hackwar - change - 17 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 17 Feb 2023
avatar Mohammadkhan18
Mohammadkhan18 - comment - 29 Mar 2023

Is this issue is still open? ,because adding some bootstrap classes will automatically resolve the issue i think


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37926.

avatar alikon
alikon - comment - 29 Mar 2023

yes, feel free to submit a pull request

avatar hans2103
hans2103 - comment - 12 May 2023

PR #40574 created

avatar richard67 richard67 - change - 12 May 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-05-12 10:26:10
Closed_By richard67
avatar richard67 richard67 - close - 12 May 2023
avatar richard67
richard67 - comment - 12 May 2023

Closing as having a pull request. Please test #40574 . Thanks in advance.

Add a Comment

Login with GitHub to post a comment