From 03240609d584714f2c6f64c07e618586d19e2b56 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 28 Mar 2019 18:38:18 +0000 Subject: [PATCH] Fix cursor on #firstHeading Bug: T214790 Change-Id: I68e3837cf71317a18a885d1dc16ad10523c464a3 --- .../styles/ve.init.mw.DesktopArticleTarget.init.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget.init.css b/modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget.init.css index a64be4eefa..68e46cde42 100644 --- a/modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget.init.css +++ b/modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget.init.css @@ -55,14 +55,18 @@ } .ve-activated #firstHeading { - /* Override the styles above to allow the heading to be selected, because people enjoy - copy-pasting it. Overriding pointer-events is surprisingly not required, and not desirable, - because of section 0 edit links and other stuff inserted inside this element by gadgets, - which should remain inactive. */ + /* Override the styles above to allow the heading to be selected, for copy-pasting */ -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; + pointer-events: auto; + cursor: text; +} + +.ve-activated #firstHeading a { + /* Re-disable any gadget-added links inside the heading, e.g. section 0 edit links */ + pointer-events: none; } .ve-activated #catlinks {