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.

Comments

Gauravmahlawat created an issue. See original summary.

gauravvvv’s picture

Status: Active » Needs review
StatusFileSize
new492 bytes
new33.22 KB
pameeela’s picture

Version: 10.0.x-dev » 9.2.x-dev

Thanks for the patch! I think Olivero bugs should be against 9.2.x.

proeung’s picture

Status: Needs review » Needs work
StatusFileSize
new481.5 KB

@Gauravmahlawat Thank you for opening this issue and submitting a patch.

+++ b/css/components/text-content.css
@@ -141,7 +141,7 @@
+        box-shadow: inset 0 -100vw 0 0 #d9ecfa;

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.

kostyashupenko’s picture

I just checked locally, maybe -2em or -3em value will be enough? To keep smoother animation, since em is based on font-size * line-height. Probably it will be enough

komalk’s picture

Assigned: Unassigned » komalk

Looking into this.

komalk’s picture

Assigned: komalk » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.1 KB
new1.22 KB
new705.18 KB
new689.61 KB

Added -2em value that is enough to keep smoother animation as mentioned in #5.
Attached screenshot for reference.
Review the patch.

ranjith_kumar_k_u’s picture

StatusFileSize
new512.27 KB
new419.05 KB

The patch works fine
Before patch
before patch

After Patch
after patch

ranjith_kumar_k_u’s picture

Status: Needs review » Reviewed & tested by the community

  • lauriii committed eefad6e on 9.2.x
    Issue #3183112 by komalk, Gauravmahlawat, ranjith_kumar_k_u, proeung,...
lauriii’s picture

Version: 9.2.x-dev » 9.1.x-dev

Tested 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.

  • lauriii committed 76f5595 on 9.1.x
    Issue #3183112 by komalk, Gauravmahlawat, ranjith_kumar_k_u, proeung,...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

Cherry-picked to 9.1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.