Page MenuHomePhabricator

Flow wikitext area doesn't respect text formatting option (monospace, sans-serif, etc.)
Closed, ResolvedPublic

Description

Flow's wikitext area doesn't respect the text formatting user option/preference (monospace, serif, sans-serif, etc.).

Top of the "Editing" section in https://www.mediawiki.org/wiki/Special:Preferences#mw-prefsection-editing

name = editfont - One of the MediaWiki DefaultUserOptions https://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions

See T72028: Should Mediawiki UI change font-family for textareas?

Event Timeline

MZMcBride raised the priority of this task from to Needs Triage.
MZMcBride updated the task description. (Show Details)
MZMcBride subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Quiddity set Security to None.

This happens because OOUI TextInputWidgets set font-family: inherit on the textarea inside them, overriding the textarea { font-family: monospace; } rule that is generated when you have editfont=monospace in your preferences. Which makes sense in the general case (we don't want multiline TextInputWidgets embedded in MW to haphazardly have editfont applied to them), so I think instead we'd have to modify ResourceLoaderUserCSSPrefsModule.php to target a CSS class instead of all textareas.

IS it possible to fix it? I had a new feedback about the lack of differences between the two modes.

...and would it be possible to fix that? :)

SBisson claimed this task.
SBisson subscribed.

I believe this is resolved. Please re-open if this is a mistake.