In full screen, the list of submenu open at hovering on outside or inside of the main menu text so, we need to opening sub menu only on hovering inside of the text.

Please review the screenshot for this issue.

CommentFileSizeAuthor
#39 afterpatch.png159.69 KBrinku jacob 13
#39 beforepatch.png159.61 KBrinku jacob 13
#38 3202667.35.patch7.68 KBsakthivel m
#36 After Patch 3202667 Mobile.png129.16 KBchetanbharambe
#36 After patch 3202667.png291.88 KBchetanbharambe
#36 Before patch 3202667 Mobile.png117.02 KBchetanbharambe
#36 Before Patch 3202667.png422.03 KBchetanbharambe
#35 3202667-34.patch7.68 KBdjsagar
#31 3202667.30.patch7.68 KBsakthivel m
#29 3194560.29.patch1.59 KBsakthivel m
#28 Screen Shot 2021-04-30 at 11.20.42 AM.png419.18 KBkiran.kadam911
#28 Screen Shot 2021-04-30 at 11.19.23 AM.png666.31 KBkiran.kadam911
#28 Screen Shot 2021-04-30 at 11.18.57 AM.png669.5 KBkiran.kadam911
#27 20210430_020515478.mp43.58 MBdjsagar
#26 3202667_26.patch7.18 KBsakthivel m
#25 3202667_25.patch7.12 KBsakthivel m
#25 3202667_25.patch7.12 KBsakthivel m
#24 20210426_114604277.mp410.24 MBdjsagar
#22 20210319_014759851.mp41.84 MBdjsagar
#21 Test_Issue_3202667.pdf191.71 KBkleiton_rodrigues
#19 Patch-applied-olivero.png703.34 KBmeghasharma
#18 after-patch-olivero.png317.64 KBMadhu kumar
#17 interdiff_14_16.txt1.43 KBhinal05
#17 3202667_16.patch5.83 KBhinal05
#16 hover-after-patch.png258.4 KBMadhu kumar
#14 3202667_14_after.gif4.63 MBhinal05
#14 3202667_14.patch5.95 KBhinal05
#14 3202667_12_after.gif4.61 MBhinal05
#14 3202667_12_before.gif3.77 MBhinal05
#13 after-patch.png136.52 KBbhumikavarshney
#13 Before-patch.png103.56 KBbhumikavarshney
#12 menu-excess-padding-3202667-12.patch3.08 KBaaron.ferris
#11 menu-excess-padding-3202667-11.patch3.07 KBaaron.ferris
#9 menu-excess-padding-3202667-9.patch1.46 KBaaron.ferris
#7 menu-excess-padding-3202667-7.patch560 bytesaaron.ferris
#5 Screenshot 2021-03-10 at 12.38.51.png16.81 KBgauravvvv
#2 Screenshot 2021-03-10 at 12.01.30.png44.06 KBgauravvvv
menu_hover_issue.gif3.77 MBhinal05

Comments

hinal05 created an issue. See original summary.

gauravvvv’s picture

StatusFileSize
new44.06 KB

This is because of excessive padding on both the top and bottom side of the menu item.

Madhu kumar’s picture

Hi I am facing same issue , Below solution solve my issue

.primary-nav__menu-link-inner:hover {
    padding-top: 0px;
    padding-bottom: 0px;
}
gauravvvv’s picture

If we apply the above code

.primary-nav__menu-link-inner:hover {
    padding-top: 0px;
    padding-bottom: 0px;
}

then on-focus below line will not have spacing.

Adding screenshot for same.

gauravvvv’s picture

StatusFileSize
new16.81 KB
aaron.ferris’s picture

Perhaps explicitly setting the padding as 0 top and bottom isn't the way to go, the excess padding seems to be coming from

 body:not(.is-always-mobile-nav) .primary-nav__menu-link-inner {
      padding-top: 2.25rem;
      padding-bottom: 2.25rem;
      transform-origin: center;
      border-top-width: 9px;
    }

The removal of the padding top and bottom from the above selector means this falls back to

.primary-nav__menu-link-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-top: 0.5625rem;
    padding-bottom: 0.5625rem;
}

Which looks more appropriate in my implementation. Ill add a patch that works for me.

aaron.ferris’s picture

StatusFileSize
new560 bytes
aaron.ferris’s picture

I might need to have another look at this, the patch means any menu with children is a little too congested when its active.

aaron.ferris’s picture

StatusFileSize
new1.46 KB

Attaching a patch that fixes a couple of problems ive seen from reducing the padding

  1. The menu item bottom border displays along with any child item (this was present before, but the bottom border would show behind the menu item, although you can see the behaviour sliding in just before the menu item opens - its there in the gif attached to the opening post as well)
  2. The child item was too congested (too close to the parent)

Im unaware of the intended design of the bottom border with a child menu item open, but it doesnt feel correct to show the border and the child item.

Feedback welcome.

aaron.ferris’s picture

aaron.ferris’s picture

StatusFileSize
new3.07 KB

Just noticed the module is using postcss, attaching a patch with both .css files.

aaron.ferris’s picture

StatusFileSize
new3.08 KB

Fixing an oddity.

bhumikavarshney’s picture

Status: Active » Needs review
StatusFileSize
new103.56 KB
new136.52 KB

Hi @aaron.ferris,
Patch #12 works fine for me.

hinal05’s picture

StatusFileSize
new3.77 MB
new4.61 MB
new5.95 KB
new4.63 MB

Applied patch #12 and it's working fine for top and bottom but right side spacing dropdown open issue is still there.
I have created new patch for this issue. Please review the patch and screenshots.
Make sure, need to clear cache after the applied new patch.

hinal05’s picture

Assigned: Unassigned » hinal05
Status: Needs review » Needs work
Madhu kumar’s picture

Status: Needs work » Needs review
StatusFileSize
new258.4 KB

Patch #12 applied cleanly and it is working well. Screenshot for reference.

hinal05’s picture

Assigned: hinal05 » Unassigned
StatusFileSize
new5.83 KB
new1.43 KB

Thanks for the comments.
Re-roll the patch #14. Please review the new patch.

Madhu kumar’s picture

StatusFileSize
new317.64 KB

@hinal05 Unable to apply the patch , patch failed. Screenshot for your reference

meghasharma’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new703.34 KB

@Madhu_kumar #17 hinal's Patch applied successfully
looks good to me
marking as RTBC..

aaron.ferris’s picture

kleiton_rodrigues’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new191.71 KB

@hinal05 The patch cannot be applied, the patch has failed.
Screenshot for viewing

djsagar’s picture

Status: Needs review » Needs work
StatusFileSize
new1.84 MB

@hinal05 your patch is applied and resolving side spacing in dropdown but when i tested it's creating another issue, for issue please review the attachment which i provided.

Thank you!

kiran.kadam911’s picture

@djsagar Thanks for the screen video. I checked Olivero-POC there is also having the same behavior/issue so this issue is not because patch #17

Olivero-POC URL: https://olivero-poc.netlify.app/

Please check and confirm.

Thanks!

djsagar’s picture

StatusFileSize
new10.24 MB

@kiran.kadam911 same issue find in URL which you shared.

Olivero-POC URL: https://olivero-poc.netlify.app/

Please check attachment.

Thanks!

sakthivel m’s picture

Status: Needs work » Needs review
StatusFileSize
new7.12 KB
new7.12 KB

Providing updated version of patch #17 as per comment #22 Fixed the submenu jerk issue.

Thanks!

sakthivel m’s picture

StatusFileSize
new7.18 KB
djsagar’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new3.58 MB

Issue no #22 is resolved after applying patch #26, marking as RTBC.

Video attached for prove.

kiran.kadam911’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new669.5 KB
new666.31 KB
new419.18 KB

@Sakthivel M Thanks for the patch, it applied successfully. But there is some new issue after applying the patch.

Below are the issue and screenshots:

  1. In mobile navigation alignment issue of menu text and plus/minus icon

    Solution: Remove line-height for mobile navigation (below 1200) or Apply line-height only for desktop (above 1200). So that total auto height of first level li will be 54 as pe POC site https://olivero-poc.netlify.app/

  2. On focus primary-nav__button-toggle outline getting cut off.

    Solution: Update width of body:not(.is-always-mobile-nav) .primary-nav__button-toggle from 16px to 21px

Rest other things are fine.

Thanks!

sakthivel m’s picture

Status: Needs work » Needs review
StatusFileSize
new1.59 KB

Providing updated version of patch #29 as per comment #28, Please verify it.

sakthivel m’s picture

sorry, #29 wrong patch uploaded

sakthivel m’s picture

StatusFileSize
new7.68 KB

#29 wrong patch uploaded.

Providing updated version of patch #30 as per comment #28, Please verify it.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

chetanbharambe’s picture

Assigned: Unassigned » chetanbharambe
djsagar’s picture

Assigned: chetanbharambe » Unassigned
djsagar’s picture

StatusFileSize
new7.68 KB

Just re-rolled the patch for 9.3.

chetanbharambe’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new422.03 KB
new117.02 KB
new291.88 KB
new129.16 KB

Verified and tested patch #31.
Patch applied successfully and looks good to me.

Testing Steps:
# Goto: admin/structure/menu/manage/main?destination=/admin/structure/menu
# Create the Menus
# Save it
# Check the results

Expected Results:
# User should see a focus on primary-nav__button-toggle
# User should see open list of submenu at hovering on menu test or dropdown (based on line-height) Please check #28 comment

Actual Results:
# User is not able to see a focus on primary-nav__button-toggle
# User is able to see open list of submenu at hovering on menu test or dropdown but User is able to see the big margin between menu text and the blue line (which is coming once hovering on the menu)

Note: Alignment issue of menu text and plus/minus icon is not part of this issue.

Looks good to me.
Can be a move to RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 35: 3202667-34.patch, failed testing. View results

sakthivel m’s picture

Status: Needs work » Needs review
StatusFileSize
new7.68 KB

#35 re-rolled the patch

rinku jacob 13’s picture

StatusFileSize
new159.61 KB
new159.69 KB

Verified and tested patch #38
patch applied successfully

mherchel’s picture

Status: Needs review » Closed (won't fix)

This seems like a personal opinion, but I honestly don't see why this is a problem.

Changes like this can cascade and affect the layout. If this was an issue (I don't believe it was), it should have been brought up in #3088378: Designs for new front-end theme for Drupal 9.

We're not making arbitrary design changes at this point in development.

rinku jacob 13’s picture