In IE11, when the submenu has focus, a horizontal scrollbar is present.

| Comment | File | Size | Author |
|---|---|---|---|
| #10 | IE11_-_Win7__before_upgrading_ie___Running_-6.png | 331.92 KB | mherchel |
| #8 | 3223268-8.patch | 1.25 KB | javi-er |
| #6 | 3223268-6.patch | 1.22 KB | dhirendra.mishra |
| #6 | interdiff_4-6.txt | 510 bytes | dhirendra.mishra |
| #4 | 3223268-4-primary-menu-submenus-scrollbar-focus.patch | 1.22 KB | javi-er |
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!