Closed (fixed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
Olivero theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Jul 2021 at 11:55 UTC
Updated:
31 Aug 2021 at 12:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mherchelPatch attached.
Comment #3
nod_This work as expected, pretty elegant too.
Comment #4
w01f commentedCatching up on this from the slack chat. The patch applied cleanly, but something is caching the site I haven't found yet so I will retest tomorrow and follow up. I don't see anything in the patch about removing js-fixed, but I'm assuming somehow it does that as well?
Thanks so much for looking into this and will follow up this weekend!
Comment #5
w01f commentedAlso tested and works great!
Comment #6
mherchelComment #7
lauriii"mobile" should be on the previous line. This can be fixed on commit. Other than that, all looks good!
Comment #8
lauriiiComing back at this now, I'm wondering if we could add tests for this?
Comment #9
mherchelTests added. The tests actually caught something, too. If the link didn't have a leading forward slash
/, it would not work properly. So, the JavaScript is updated too.Comment #10
mherchelGah. Forgot a trailing semicolon in the test. New patches attached.
Comment #11
gauravvvv commentedPatch #10, fixes the issue. Now on clicking to the menu link having id on same works in mobile too. Menu is closing and page scroll down the element having same id as in menu link.
RTBC+1
Attached after patch screen recording for reference.
Comment #14
lauriiiCommitted 4f8c468 and pushed to 9.3.x. Cherry-picked to 9.2.x because Olivero is experimental. Thanks!