Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix separator for menu item without children #16647

Merged
merged 4 commits into from
Dec 4, 2024
Merged

Conversation

theboxer
Copy link
Member

What does it do?

Adds separator for menu items without children

Why is it needed?

Missing separator

How to test

Create menu entry without children

Related issue(s)/PR(s)

Resolves #16645

@theboxer theboxer added the requires build Grunt build is required for integration label Nov 21, 2024
Copy link
Collaborator

@smg6511 smg6511 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, this definitely corrects the issue as-is. Thus I went ahead and approved.

I made some suggestions, nonetheless, because I noticed that having the $top var serves no purpose so you might as well simply add the top class to the <li> directly (and, the top-link css class is not used in 3.x). Plus, really we want to select all top-level nav <li>s to apply the top border, so the selector in the scss file can be simplified (as noted in the second comment).

Anyway, up to you if you want to incorporate these changes. If you think it's too nit-picky, no problem ;-)

manager/controllers/default/header.php Outdated Show resolved Hide resolved
manager/controllers/default/header.php Outdated Show resolved Hide resolved
@theboxer
Copy link
Member Author

@smg6511 thx for the suggestions, added them all

@theboxer theboxer requested a review from smg6511 November 22, 2024 16:09
@smg6511 smg6511 added the pr/ready-for-merging Pull request reviewed and tested and ready for merging. label Nov 22, 2024
@opengeek
Copy link
Member

opengeek commented Dec 3, 2024

This PR includes the compiled assets. Can you remove those @theboxer?

@opengeek opengeek removed the pr/ready-for-merging Pull request reviewed and tested and ready for merging. label Dec 3, 2024
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 21.60%. Comparing base (9a3f82c) to head (662c141).
Report is 24 commits behind head on 3.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                3.x   #16647      +/-   ##
============================================
+ Coverage     21.47%   21.60%   +0.13%     
- Complexity    10652    10713      +61     
============================================
  Files           561      564       +3     
  Lines         32268    32373     +105     
============================================
+ Hits           6929     6995      +66     
- Misses        25339    25378      +39     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

theboxer and others added 4 commits December 4, 2024 07:41
@opengeek opengeek merged commit 3000918 into modxcms:3.x Dec 4, 2024
7 of 8 checks passed
jenswittmann pushed a commit to jenswittmann/revolution that referenced this pull request Dec 23, 2024
### What does it do?
Adds separator for menu items without children

### Why is it needed?
Missing separator

### How to test
Create menu entry without children

### Related issue(s)/PR(s)
Resolves modxcms#16645

---------

Co-authored-by: Jason Coward <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires build Grunt build is required for integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[3.x] Manager Menu Custom Item without Children missing classname
5 participants