Closed (fixed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
Olivero theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Jul 2021 at 13:49 UTC
Updated:
31 Aug 2021 at 12:34 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #3
mherchelCrediting @javi-er, who found the bug
Comment #4
javi-er commentedThe problem seems to be that in IE11 the position absolute + translate + width of submenu items :focus:before element is triggering the scrollbars.
I simplified the :focus:before logic for second level items which seems to have solved the issue, I tested this on Chrome, Firefox, Safari (mac), IE11 on Win10 and Edge 91 on Win10
Comment #5
mherchelThis is looking good! There's a couple of issues. The patch isn't passing core's CSS linting. You can run this locally by running
yarn lint:css. It's probably just an order of properties thing.This should be
left: calc(var(--sp0-5) * -1);. On line 34, we're settingwidth: calc(100% + var(--sp));, and we only want to evenly distribute the spacing on both the left and right side (right now, it's all distributed on the left).Comment #6
dhirendra.mishra commentedHere is the fix from #5 comment.
Comment #7
mherchelLast patch didn't pass tests
Comment #8
javi-er commentedThanks @mherchel, here's the patch at #6 with css linting applied, it's passing the tests on my local now.
Comment #9
javi-er commentedComment #10
mherchelLooks perfect! Thanks for working on it!

Comment #11
lauriiiThis is ready to be committed after the code freeze 👍
Comment #14
lauriiiCommitted 0c9dfc7 and pushed to 9.3.x. Also cherry-picked to 9.2.x because Olivero is experimental. Thanks!