jenkins-bot has submitted this change and it was merged.

Change subject: Avoid highlight color of CX appearing in published articles
......................................................................


Avoid highlight color of CX appearing in published articles

Chrome copies the background-color to inline style while it creates
new spans or divs with enter key presses.

To avoid that we are not using background-color and using just
background style property for cx-highlight class.

Bug: T90724
Change-Id: I1640cf53bf399ff3574bfa7b0a758298e8c92b4d
---
M modules/widgets/common/ext.cx.highlight.less
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Amire80: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/widgets/common/ext.cx.highlight.less 
b/modules/widgets/common/ext.cx.highlight.less
index f339809..94f3b05 100644
--- a/modules/widgets/common/ext.cx.highlight.less
+++ b/modules/widgets/common/ext.cx.highlight.less
@@ -3,7 +3,9 @@
 @connected-link-highlight-color: #D9E6FF;
 
 .cx-highlight {
-       background-color: @text-highlight-color;
+       // Chrome copies the background-color to inline style while it creates 
new spans or divs
+       // with enter key presses. To avoid that we are not using 
background-color
+       background: @text-highlight-color;
        box-shadow: 0px 0px 0 2px @text-highlight-color;
        border-radius: 2px;
        transition: all 0.25s;

-- 
To view, visit https://gerrit.wikimedia.org/r/228242
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1640cf53bf399ff3574bfa7b0a758298e8c92b4d
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>
Gerrit-Reviewer: Amire80 <amir.ahar...@mail.huji.ac.il>
Gerrit-Reviewer: Pginer <pgi...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to