[go: up one dir, main page]

Page MenuHomePhabricator

Update page titlebar element source order
Closed, ResolvedPublic3 Estimated Story Points

Description

Background

Currently the language button and indicators are defined before the h1 in the page titlebar mustache template (ContentHeader.less). This doesn't match the visual design, and the expected order. This task is for switching the source order so that the h1 goes first.

AC

  • No visual changes
  • Both language button and indicators in header works the same
  • The h1 comes first in the DOM

Developer notes

The current source order is due to us using floats to position the language button and indicators. Our solution could continue to use floats, or potentially flexbox

QA Results - Beta

ACStatusDetails
1T313947#8240051

QA Results - Prod

ACStatusDetails
1T313947#8246948

Event Timeline

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

[mediawiki/skins/Vector@master] POC: Correct ContentHeader source order to match design

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

ovasileva triaged this task as Medium priority.Aug 4 2022, 5:22 PM

The downside to this change is that we relied on the incorrect order so that the page title could remain unfloated, and wrap around the language button when the title is very long.

Screen Shot 2022-08-22 at 1.14.47 PM.png (202×1 px, 44 KB)

After changing the order, I can see two possible solutions that will impact the design on pages with long titles and narrow viewports:

  1. Using flexbox:

Screen Shot 2022-08-22 at 1.18.34 PM.png (194×1 px, 44 KB)

  1. Continuing to use floats and display: inline-block on the h1:

Screen Shot 2022-08-22 at 12.59.00 PM.png (276×1 px, 45 KB)

@alexhollender_WMF thoughts?

@bwang I think option 1 looks a little less awkward

bwang removed bwang as the assignee of this task.Sep 7 2022, 5:19 PM
bwang moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-2022-23-Q1) board.
cjming reassigned this task from cjming to Jdrewniak.
cjming subscribed.

Change 817306 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Correct ContentHeader source order to match design

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

Note: The change in 817306 also impacts the language button at mobile resolution (320x480)

Before:

image.png (754×468 px, 64 KB)

Now:

image.png (720×476 px, 64 KB)

looks good to me

{F35517959}{F35517960}

@Edtadros check out a few different pages in beta, at a few different screen sizes, and make sure there's nothing weird going on with the alignment of the page title and the language switcher

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1:check out a few different pages in beta, at a few different screen sizes, and make sure there's nothing weird going on with the alignment of the page title and the language switcher

I checked a few sites in Safari, Firefox, and Chrome. Everything looks fine. Here are some examples of a long title.

Screen Shot 2022-09-15 at 9.40.05 AM.png (932×612 px, 196 KB)

Screen Shot 2022-09-15 at 9.40.13 AM.png (932×922 px, 211 KB)

Screen Shot 2022-09-15 at 9.40.19 AM.png (932×1 px, 229 KB)

Test Result - Prod

Status: ✅ PASS
Environment: dewiki
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1:check out a few different pages in dewiki, at a few different screen sizes, and make sure there's nothing weird going on with the alignment of the page title and the language switcher

I checked a few sites in Safari, Firefox, and Chrome. Everything looks fine. Here are some examples of a long title.

Screen Shot 2022-09-19 at 4.48.28 PM.png (1×870 px, 343 KB)

Screen Shot 2022-09-19 at 4.48.48 PM.png (1×1 px, 378 KB)

Screen Shot 2022-09-19 at 4.48.11 PM.png (1×784 px, 341 KB)