Needs work
Project:
Drupal core
Version:
main
Component:
navigation.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Nov 2023 at 17:31 UTC
Updated:
16 Aug 2024 at 09:04 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #3
ckrinaCrediting @q0rban for reporting it.
Comment #4
ckrinaComment #5
kostyashupenkoComment #7
kostyashupenkoIt was a bit tricky, but working now and working even better than before from my pov.
Previous shadows were added using CSS gradients technique. However we can't use this method, since inner elements in the tree contains background colors (on hover, active, etc states) which are overlapping parent gradient (that's why shadow disappeared @ckrina on hovering).
Now shadows are controlled by javascript (which is OK i think, and there will be no shadows at all if js is disabled in browser).
Mobile behavior:

Desktop behavior:

Comment #8
kostyashupenkoComment #11
pragati_kanade commentedI have reviewed #6 and it is working fine as per the proposed solution so I am moving it to RTBC.
Thanks.
Comment #12
finnsky commentedSorry, i didn't change status after MR discussion.
I still think that we can move it outside of sidebar.
Comment #13
finnsky commentedComment #15
finnsky commentedRerolled previously added script here. It seems me more delicate approach. Please review.
Comment #16
pragati_kanade commentedHi @finnsky I have review this MR and It looks good to me. Footer shadow is also not getting disappear after hover on buttons.
Hence changing status to "RTBC".
Thanks.
Comment #17
finnsky commentedSorry, i retested my work. Seems i forgot to manage header shadow in expanded state. Sending back to NW.
Comment #18
prashant.c@finnsky
I am not sure, this issue is related to this or not. On hover of last menu item, the bottom border disappears/overflows.

Thanks!
Comment #19
KeyboardCowboyComment #20
chetansonawaneComment #23
chetansonawane@finnsky,
I think the whole UI behavior is changed now, I can not see the dropdown functionality while hovering on the menu item, on hover of the first level menu it expand right side and on hover of second level menu there is dropdown, but UI is different, so it is working fine, we can close this issue.
Comment #24
finnsky commented@chetansonawane thank you for testing.
I think it should be rebased or even recreated first.
Problem still present in current 1.x
Comment #25
ckrinaComment #26
finnsky commentedHere also we need to fix this one.
I suggest to add to resize observer for that shadows.
Comment #31
gauravvvv commentedComment #32
finnsky commentedThank you for backporting this.
Some notes.
Since that original script was written lot of things were changed.
We need to rework at and adapt to current logic.
1. I see shadow on mobile but not on desktop
2. I see broken header and wrong padding relative to footer.
https://gyazo.com/f08ad11ee5f5d21f4290af428d220d72
3. I see some flickering on popover open
https://gyazo.com/b80215700f117abb7350000800758d08
probably not related to this fix but better to check
Comment #34
ahsannazir commentedThe shadow is shown both on Desktop & Mobile when
data-detected-y-overflow="true"The 3rd point mentioned in #32 about flickering needs to be investigated more and fixed accordingly.
Comment #35
ahsannazir commentedComment #36
kanchan bhogade commentedHi
I've tested MR 8106 on Drupal 11
The MR is applied cleanly...
Checked for the #32 1 and 2 point
1. Added shadow on desktop
2. Added shadow on Mobile for header
Attaching Screenshots
Comment #37
smustgrave commentedIssue summary is not complete, proposed solution is empty and User Interface section is empty and this appears to be a UI fix.
Have not reviewed
Comment #38
ahsannazir commented@gauravvvv Can you please add/update the issue summary with proposed solution