Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
Olivero theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2020 at 04:42 UTC
Updated:
17 Dec 2020 at 14:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gauravvvv commentedComment #3
pameeela commentedThanks for the patch! I think Olivero bugs should be against 9.2.x.
Comment #4
proeung@Gauravmahlawat Thank you for opening this issue and submitting a patch.
Let's use `em` unit instead of `vw` so that we have a smoother transition of the box-shadow/background on hover. Please see attached for an example.
Comment #5
kostyashupenkoI just checked locally, maybe
-2emor-3emvalue will be enough? To keep smoother animation, since em is based onfont-size*line-height. Probably it will be enoughComment #6
komalk commentedLooking into this.
Comment #7
komalk commentedAdded -2em value that is enough to keep smoother animation as mentioned in #5.
Attached screenshot for reference.
Review the patch.
Comment #8
ranjith_kumar_k_u commentedThe patch works fine

Before patch
After Patch

Comment #9
ranjith_kumar_k_u commentedComment #11
lauriiiTested this manually with various different elements, font-sizes and line-heights and it seems to work fine 👍
Committed eefad6e and pushed to 9.2.x. Thanks!
Leaving open for backport to 9.1.x.
Comment #13
lauriiiCherry-picked to 9.1.x.