Open BrokenMop opened 4 years ago
Hi @BrokenMop. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, please, review the Magento Contributor Assistant documentation.
@BrokenMop do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
Yes I can confirm the issue on vanilla Magento instance
Hi @engcom-Alfa. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
:white_check_mark: Confirmed by @engcom-Alfa
Thank you for verifying the issue. Based on the provided information internal tickets MC-40292
were created
Issue Available: @engcom-Alfa, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!
I think this is intended, just don't know the right cases for this css. Otherwise, we can safely remove it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!
It's still relevant, you need the headings there.
This also occurs if you add an additional menu, making the total count three. For example, I have an additional menu under Content where the subtitles do not show:
But, when I add a fourth grouping, it shows up:
This is a full admin user; I did not change any ACL.
Add it to for example Vendor/Module/view/adminhtml/web/css/source/_module.less as a temporary solution:
body {
.admin__menu {
.submenu {
.column:only-of-type {
.submenu-group-title {
display: block;
}
}
}
.level-0 {
& > .submenu {
& > ul {
& > .level-1:only-of-type {
& > .submenu-group-title {
display: block;
}
}
}
}
}
}
}
I've confirmed the same issue as @lfolco, this is definitely a bug.
Out of the box, Magento's HTML structure looks like this:
Notice how there is a single <ul role="menu">
element.
Now, when I add a new third item with a child, the headers are hidden due to the CSS in this screenshot. This seems to be triggered because a child <ul role="menu">
element is contained within a parent <ul role="menu">
element, as well as a .column
el which wasn't previously present:
If I create a second custom menu item (with no child, as just a placeholder), the headers show back up, but a second column shows (which is obviously unintended):
The headers show back up because there are two .column
elements, so the .column:only-of-type
CSS rule is not activated.
Hi @engcom-Delta. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
Preconditions:
Steps to reproduce:
e.g. So now, we have totally 4 submenus under the Content menu: Elements, Design, Test Menu 2, and Test Menu 3
Expected result: :heavy_check_mark:
Actual result: :heavy_multiplication_x:
.adminmenu .submenu .column:only-of-type .submenu-group-title, .adminmenu .level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title { display: none; }
The first selector actually hides the subtitle.
Observation: Looks like Magento groups submenu into columns when there are multiple, but when there is only 1 column, the subtitle is hidden by the CSS.