Page MenuHomePhabricator

Increase line height for Vector in standard and large mode
Closed, ResolvedPublic2 Estimated Story Points

Description

Background

In T358501: Review line-heights for typography changes in light of the feedback we got about Minerva for other Minerva sizes and V22 we reviewed the current line heights for Vector and Minerva. The results of the investigation will be implemented in this ticket for the vector skin.

User story

  • As a reader, I want the ability to read comfortably on the desktop skin, across all typography settings

Requirements

  • The Vector22 line heights should be as follows

    Vector22
Param Small Standard Large
Font-size(px) 14 16 20
Line-height(em) 1.57 1.6 1.5

BDD

Feature: Vector22 Skin Text Size and Line Height Configuration

  Scenario Outline: Ensure Vector22 skin adheres to designated line heights for different text sizes
    Given the Vector22 skin is active on Wikipedia
    When the user selects "<Text>" text size
    Then the font size should be "<Font-size>" pixels
    And the line height should be "<Line-height>" ems

    Examples:
      | Text     | Font-size | Line-height |
      | Small    | 14        | 1.57        |
      | Standard | 16        | 1.6         |
      | Large    | 20        | 1.5         |

Test Steps

  1. Verify Line Height for Small Text Size in Vector22:
    • Select the Vector22 skin on Wikipedia and adjust text size to Small.
    • AC1: Confirm the font size is 14 pixels and the line height is 1.57 ems.
  1. Verify Line Height for Standard Text Size in Vector22:
    • Adjust text size to Standard.
    • AC2: Confirm the font size is 16 pixels and the line height is 1.6 ems.
  1. Verify Line Height for Large Text Size in Vector22:
    • Adjust text size to Large.
    • AC3: Confirm the font size is 20 pixels and the line height is 1.5 ems.

Design

  • See above

Acceptance criteria

  • No changes to the default (small) font size
  • Change the standard font size line height from 1.5 to 1.6
  • Change the large font size line height from 1.3 to 1.5

Communication criteria - does this need an announcement or discussion?

  • TechNews

QA Results - Prod

AC Status Details
1 T359030#9667450
2 T359030#9667450
3 T359030#9667450

Event Timeline

ovasileva set the point value for this task to 2.Mar 11 2024, 5:43 PM
bwang removed bwang as the assignee of this task.Mar 12 2024, 7:23 PM
bwang moved this task from Doing to Code Review on the Web-Team-Backlog (FY2023-24 Q3 Sprint 5) board.
bwang subscribed.

Change 1010613 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Increase line height for medium and large font settings

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

Change 1010613 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Increase line height for medium and large font settings

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

This is testable on the beta cluster. Please take a look and check that it matches specification. Please move to "Ready for sign off" if this looks good to you.

Hello @ovasileva,
Re: Tech News - What wording would you suggest as the content, and When should it be included? Thanks!

@UOzurumba - apologies for the delay. Maybe something like "Users of the reading accessibility beta feature will see changes to the default line height for the standard and large text options"

Edtadros subscribed.

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps
  1. Verify Line Height for Small Text Size in Vector22:
    • Select the Vector22 skin on Wikipedia and adjust text size to Small.
    • AC1: Confirm the font size is 14 pixels and the line height is 1.57 ems.

screenshot 118.png (1×1 px, 315 KB)

  1. Verify Line Height for Standard Text Size in Vector22:
    • Adjust text size to Standard.
    • AC2: Confirm the font size is 16 pixels and the line height is 1.6 ems.

screenshot 117.png (1×1 px, 336 KB)

  1. Verify Line Height for Large Text Size in Vector22:
    • Adjust text size to Large.
    • AC3: Confirm the font size is 20 pixels and the line height is 1.5 ems.

screenshot 119.png (1×1 px, 348 KB)