NPM Resource Changed ? Documentation Required Failure

User tests: Successful: Unsuccessful:

avatar RickR2H
RickR2H
23 Jun 2021

Summary of Changes

When an menu item has a longer title then the other items in the Metismenu dropdown, the caret will wrap to the next line. This PR fixes this issue.

Testing Instructions

install the Blog Sample Data.
Open the menu "Main Menu Blog".
Open the menu item "Articles" and rename it to "Articles Longer Title To Test".
The caret now wraps underneath the menu item title.
Please test all drop down possibilities in the menu. This is easily done by batch copying a menu item with multiple sub-items.

In the last commits I added fixes for long titles. So please also add some items with longer titles (6 or 7 words)

Actual result BEFORE applying this Pull Request

before

Expected result AFTER applying this Pull Request

after

Documentation Changes Required

No

avatar RickR2H RickR2H - open - 23 Jun 2021
avatar RickR2H RickR2H - change - 23 Jun 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Jun 2021
Category Front End Templates (site) NPM Change
avatar RickR2H RickR2H - change - 23 Jun 2021
Labels Added: NPM Resource Changed ?
avatar richard67
richard67 - comment - 23 Jun 2021

Have you verified how your change looks when the metismenu is at other module positions, e.g. sidebar right or top-main? I see you added a span in the markup but styling in scss you have chsnhed only for the header section.

avatar RickR2H
RickR2H - comment - 23 Jun 2021

Have you verified how your change looks when the metismenu is at other module positions, e.g. sidebar right or top-main? I see you added a span in the markup but styling in scss you have chsnhed only for the header section.

I'll check! Thanks!

avatar RickR2H
RickR2H - comment - 23 Jun 2021

@richard67 Checked all positions and made some fixes. Could you take a look?

avatar richard67
richard67 - comment - 23 Jun 2021

I don’t think it’s right to have styling for .container-header in the _metismenu.scss file. But I’m not a CSS expert. Maybe @drmenzelit can have a look.

avatar RickR2H
RickR2H - comment - 23 Jun 2021

@richard67 I agree. I've moved the styling for the .container-header to the _header.scss file.

avatar RickR2H
RickR2H - comment - 23 Jun 2021

@richard67 I get a CI failing build. Can you tell me if this is something I have to fix?

avatar brianteeman
brianteeman - comment - 23 Jun 2021

No - thats a known issue unrelated to your PR that has being going on for far too long

avatar richard67
richard67 - comment - 23 Jun 2021

It’s a problem which currently all PRs have and there is nothing you can do about it. People are already working on it.

avatar RickR2H
RickR2H - comment - 23 Jun 2021

Thanks! I'll ignore the error.

avatar RickR2H RickR2H - change - 24 Jun 2021
The description was changed
avatar RickR2H RickR2H - edited - 24 Jun 2021
avatar ricardo1709 ricardo1709 - test_item - 24 Jun 2021 - Tested successfully
avatar ricardo1709
ricardo1709 - comment - 24 Jun 2021

I have tested this item successfully on e1c8a5e


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

avatar drmenzelit drmenzelit - test_item - 24 Jun 2021 - Tested unsuccessfully
avatar drmenzelit
drmenzelit - comment - 24 Jun 2021

I have tested this item ? unsuccessfully on e1c8a5e

My menu is now broken


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

avatar drmenzelit
drmenzelit - comment - 24 Jun 2021

grafik

avatar RickR2H
RickR2H - comment - 24 Jun 2021

@drmenzelit please rebuild the SCSS by running in the Joomla root: npm ci
Or download the fork via: https://github.com/RickR2H/joomla-cms/archive/mm-menu-fix.zip and install


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

avatar MSnoeren MSnoeren - test_item - 24 Jun 2021 - Tested successfully
avatar MSnoeren
MSnoeren - comment - 24 Jun 2021

I have tested this item successfully on e1c8a5e

After downloading the full Joomla branch with Rick's changes, manually installing composer and NPM dependencies, it worked for me after recompiling the SCSS.


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

avatar drmenzelit drmenzelit - test_item - 24 Jun 2021 - Tested successfully
avatar drmenzelit
drmenzelit - comment - 24 Jun 2021

I have tested this item successfully on e1c8a5e

After running npm ci several times now the PR is working :-)


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

avatar richard67 richard67 - alter_testresult - 24 Jun 2021 - ricardo1709: Tested successfully
avatar richard67 richard67 - alter_testresult - 24 Jun 2021 - MSnoeren: Tested successfully
avatar richard67 richard67 - alter_testresult - 24 Jun 2021 - drmenzelit: Tested successfully
avatar richard67
richard67 - comment - 24 Jun 2021

I've restored the previous test results in the issue tracker since the commit which invalidated the count was only a code style change.

avatar richard67 richard67 - change - 24 Jun 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 24 Jun 2021

RTC


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

avatar RickR2H
RickR2H - comment - 24 Jun 2021

Thanks @richard67

avatar richard67
richard67 - comment - 24 Jun 2021

Drone failure is not related to this PR but to a general issue with our analysis4x check in Drone. SST is still working on it.

avatar richard67
richard67 - comment - 24 Jun 2021

@RickR2H Regarding the title of this PR: It has a spelling error. "Carot" is wrong, it should be "carrot", with two "r". Or did you mean "caret"? ?

avatar RickR2H RickR2H - change - 24 Jun 2021
Title
Fix metismenu carot wrapping
Fix metismenu caret wrapping
avatar RickR2H RickR2H - edited - 24 Jun 2021
avatar RickR2H
RickR2H - comment - 24 Jun 2021

@richard67 Looks like a carrot to me!! ? But caret is the correct one.... Changed the name!

avatar richard67
richard67 - comment - 24 Jun 2021

If it was a carrot it would be a vegan menu.

avatar RickR2H
RickR2H - comment - 24 Jun 2021

????

avatar wilsonge wilsonge - close - 27 Jun 2021
avatar wilsonge wilsonge - merge - 27 Jun 2021
avatar wilsonge wilsonge - change - 27 Jun 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-06-27 10:19:03
Closed_By wilsonge
Labels Added: Documentation Required
avatar wilsonge
wilsonge - comment - 27 Jun 2021

Thanks guys!

avatar richard67
richard67 - comment - 10 Jul 2021

Sorry, I should have reviewed this PR when I had set it RTC because of the 2 tests because it breaks things. Reasons and PR for reverting it see #34750 .

Add a Comment

Login with GitHub to post a comment