Page MenuHomePhabricator

[M] [Technical] Vector should consistently use mw-ui-icon-flush-left and mw-ui-icon-flush-right utility classes
Closed, ResolvedPublic1 Estimated Story Points

Description

NOTE: Why this is a priority: Without doing this there is a risk that future changes to Codex/mediawiki UI by the DST team would be blocked on web team. Since we are making various changes relating to this code, now seems like an ideal time to do this work. It also aids with the solution to T317583.

In several places in Vector code, we require knowledge of icon sizes to align layout correctly. This is problematic when the specification for icons changes, particularly going forward where the specification will be owned by another team. This IMO blocks us moving to updated icon specification.

TODO

  • With the VisualEnhancementsNext feature flag enabled, elements will align correctly using only the mw-ui-icon-flush-left and mw-ui-icon-flush-right utility classes

QA

QA Results - Beta

ACStatusDetails
1T321504#8403383

Event Timeline

Jdlrobson lowered the priority of this task from High to Medium.Oct 24 2022, 11:13 PM
Jdlrobson updated the task description. (Show Details)
Jdlrobson set the point value for this task to 1.

Change 838926 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Use standard utility classes for flushing icons left and right

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

Jdlrobson lowered the priority of this task from Medium to Low.Oct 25 2022, 4:57 PM
ovasileva raised the priority of this task from Low to Medium.Oct 25 2022, 4:58 PM
LGoto renamed this task from [Technical] Vector should consistently use mw-ui-icon-flush-left and mw-ui-icon-flush-right utility classes to [M] [Technical] Vector should consistently use mw-ui-icon-flush-left and mw-ui-icon-flush-right utility classes.Oct 26 2022, 4:59 PM

Change 838926 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Use standard utility classes for flushing icons left and right

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

Change 850214 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Remove duplicate styles

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

From @bwang:

image.png (584×1 px, 165 KB)

The mw-ui-icon-flush-left and mw-ui-icon-flush-right classes don't work when the VisualEnhancementNext flag is enabled, this is because the icon buttons need a different flush value than the normal buttons. Right now the alignment when the visual enhancement next flag is enabled is off

Will look into this later.

Change 850214 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Remove duplicate styles

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

Change 850594 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Fix alignment between icons on left and right of screen

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

To visually test the alignment I am using this code:

$('<div>').attr('style', 'position:fixed; right: 53px; top: 0; bottom: 0; width: 1px; background: black;').appendTo(document.body)
$('<div>').attr('style', 'position:fixed; left: 46px; top: 0; bottom: 0; width: 1px; background: black;').appendTo(document.body)

On TOC there is 1px discrepancy due to the .sidebar-toc-toggle { left: ~'calc( -1 * @{toc-subsection-toggle-icon-size} - 1px )'; } rule.

Change 851146 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Correct flush value for new icon specification

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

Change 851146 merged by jenkins-bot:

[mediawiki/core@master] Correct flush value for new icon specification

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

Change 852276 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/MinervaNeue@master] Disable new flushing rules on mobile

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

Change 852291 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Vector@master] Disable new flushing rules with feature flag disabled

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

Change 852291 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Disable new flushing rules with feature flag disabled

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

Change 852276 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Disable new flushing rules on mobile

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

Change 853062 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Add and document mw-ui-flush classes to eventually replace existing ones

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

Change 850594 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Fix alignment between icons on left and right of screen

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

Change 853062 abandoned by Jdlrobson:

[mediawiki/core@master] Add and document mw-ui-flush classes to eventually replace existing ones

Reason:

Abandoning in favor of https://phabricator.wikimedia.org/T322436

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

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

[mediawiki/skins/Vector@master] Fix ToC spacing when visual next flag is enabled, address icon related feedback

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

Change 853396 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Fix ToC dropdown menu spacing when visual next flag is enabled, address icon related feedback

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

Edtadros subscribed.

Test Result - Beta

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

Test Artifact(s):

QA Steps

✅ AC1: On master there should be no visual regressions https://pixel.wmcloud.org/reports/desktop

Screenshot 2022-11-17 at 9.45.43 AM.png (796×1 px, 118 KB)

Not testable in Beta so moving to Ready for Signoff.