When we hover over links then the background color appears over the link has a specific height 0f -30px, In some cases when we have 2-3 lines of URL then this is looking broke. Here I am adding a screenshot for reference.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | After--patch.jpg | 419.05 KB | ranjith_kumar_k_u |
| #8 | Before--patch.jpg | 512.27 KB | ranjith_kumar_k_u |
| #7 | before-patch.png | 689.61 KB | komalk |
| #7 | After-patch.png | 705.18 KB | komalk |
| #7 | interdiff_2-7.txt | 1.22 KB | komalk |
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.