Page MenuHomePhabricator

Adjust text style for sections when translated on desktop
Closed, ResolvedPublic

Description

When translating a section on desktop using this link the section title is shown using the same text style that is used for article titles (h1) instead of the one used for sections (h2). Representing section titles in Content Translation in a consistent way as they are shown in the article (and when edited in VE) would help the user to identify this piece of content as a section.

This ticket proposes to update the styling when a section is translated (not when an article is created) to align with the one used in articles. This involves adjusting the font size and line height.

Section title in an articleSection title edited in Content Translation
Screenshot 2022-09-05 at 12.09.18 2.png (592×1 px, 227 KB)
Screenshot 2022-09-05 at 12.10.01 2.png (718×1 px, 170 KB)

Event Timeline

Pginer-WMF renamed this task from Adjust text style for sections when translated ondesktop to Adjust text style for sections when translated on desktop.
Pginer-WMF triaged this task as Medium priority.

Change 832245 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] Adjust text style for sections when translated on desktop

https://gerrit.wikimedia.org/r/832245

Change 832245 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Adjust text style for sections when translated on desktop

https://gerrit.wikimedia.org/r/832245

Test status: QA PASS

section page has been updated to differentiate it from the title page

Screen Shot 2022-11-20 at 9.25.59 PM.png (732×1 px, 271 KB)