Olivero: Mobile sub-navigation menus slightly offset subsequent menu links when hidden

Proposed solution:
Add margin: 0; to primary-nav__menu--level-2 class, when visibility: hidden;

Comments

Gauravmahlawat created an issue. See original summary.

gauravvvv’s picture

Issue summary: View changes
sakthivel m’s picture

Status: Active » Needs review
StatusFileSize
new1.08 KB

#2 Please review the patch

akhildev.cs’s picture

StatusFileSize
new118.48 KB
new67.17 KB

hi,
#3 patch applied successfully, working fine for me. menu width in mobile view changed.
thankyou.

mherchel’s picture

Title: Olivero: main menu item doesn't have equal spacing between them on the mobile screen. » Olivero: Mobile sub-navigation menus slightly offset subsequent menu links when hidden
Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +CSS
StatusFileSize
new397.13 KB

Wow you have a really good eye to see this! I've looked at that menu so many times and never noticed.

One minor change.

+++ b/core/themes/olivero/css/components/navigation/nav-primary.pcss.css
@@ -150,6 +150,8 @@
+  margin-top: 0;

You can replace these two lines with margin-block: 0;

gauravvvv’s picture

StatusFileSize
new1.06 KB
new618 bytes

Patch updated as suggested in #5.

Interdiff attached. thanks

gauravvvv’s picture

Status: Needs work » Needs review
mherchel’s picture

Status: Needs review » Reviewed & tested by the community

Looks perfect!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 6: 3213118-6.patch, failed testing. View results

gauravvvv’s picture

Status: Needs work » Reviewed & tested by the community

Unrelated failure, moving back to RTBC

  • lauriii committed 9a74649 on 9.3.x
    Issue #3213118 by Gauravmahlawat, Sakthivel M, Akhildev.cs, mherchel:...

  • lauriii committed 8b4e680 on 9.2.x
    Issue #3213118 by Gauravmahlawat, Sakthivel M, Akhildev.cs, mherchel:...
lauriii’s picture

Version: 9.3.x-dev » 9.2.x-dev
Status: Reviewed & tested by the community » Fixed

Committed 9a74649 and pushed to 9.3.x. Also cherry-picked to 9.2.x because Olivero is experimental. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.