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

--- Comment #8 from Matthew Flaschen <[email protected]> ---
(In reply to Michael M. from comment #0)
> I did not test this as logged in user, but
> .mw-ui-input {
>  font-family: inherit;
> }
> 
> is more specific than the style generated by [1] and thus likely to override
> even explicit user preferences for the font style.

This is tested.  You are correct.  The user preference ("Edit area font style")
is applied to all textarea elements (textarea {} ), although that does not
really match the description.  Element selectors have lower specificity than
class selectors (.mw-ui-input {} ).

We do not need to apply it to all textareas (that is not what the preference
says).

However, we do need to either respect the preference for the main wikitext
editing area, or remove the preference.

I suggest we make a .mw-ui-input-wikitext-page secondary class, that respects
this preference.  It should apply when you're editing a wikitext page
(including section editing).

The 'page' distinction is under the theory that Flow will want its own class
(without inheriting this font behavior), which may be justifiable considering
it's a very different use case (messages with few if any templates as opposed
to long pages or sections with templates sprinkled throughout).

-- 
You are receiving this mail because:
You are the assignee for the bug.
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