https://bugzilla.wikimedia.org/show_bug.cgi?id=50077

--- Comment #9 from Krinkle <[email protected]> ---
I agree that it isn't obvious whether the community does or doesn't want this
information on the edit page. However I also want to emphasise that this is
hidden by default, and thanks to our logic that strips out fake notices that
have no visible content, they are hidden for the vast majority of users.

If this "Page notice" redlink is visible, it is because the user has styles in
their state (either from [[MediaWiki:Group-sysop.css]] or their user
stylesheet) that make ".editnotice-redlink" or ".show-sysops" visible (the
element in the edit notice has both classes).

So one could argue showing it is the right thing to do, for they want to see
it. Why would they want to see it on the edit page but not in VisualEditor?
Likely because they don't use it that much in the first place, but it is more
intruding in VisualEditor because notices pop up from the editor.

Anyway, to hide in visualeditor without hiding it else where, you can use the
following line of CSS:

.ve-init-mw-viewPageTarget-toolbar-editNotices-notice .editnotice-redlink {
display: none !important; }

I'd recommend the community adds this to [[MediaWiki:Group-sysop.css]] right
below the rules for  ".show-sysop { display: block !important; }" and the like.

Note that we can't use ve-ui-toolbar, we can only use
"ve-init-mw-viewPageTarget-toolbar-editNotices-notice" because the other
elements aren't in the notice's element tree until *after* it is already in the
VE DOM, and hiding it after that will merely make the link invisible, the
notice container will still be there.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to