Page MenuHomePhabricator

Standardize MobileFrontend buttons to match design spec
Closed, ResolvedPublic5 Estimated Story Points

Description

Background

MobileFrontend is responsible for certain JS buttons that are still relying primarily on mw-ui-icon-element. To name a few these include the search overlay close button, VE overlay buttons, buttons inside the drawer component and others. This approach means these buttons are lacking focus and active states, and are not aligned with the design style guide specs for "quiet buttons"

This task is for updating MobileFrontend buttons to match the implementation in MinerveNeue and Vector, aka add the mw-ui-button and mw-ui-button-quiet classes to mw-ui-icon-element buttons.

This is a follow up to: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MobileFrontend/+/733009

QA

  • Ensure all icon buttons on the mobile site all have the correct button states
  • The collapse section buttons should no longer be styled as buttons, as the entire header open and close sections

Event Timeline

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

[mediawiki/extensions/MobileFrontend@master] POC: Standardize button and icons in MobileFrontend to match Minerva and Vector

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

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

[mediawiki/skins/MinervaNeue@master] Restrict overlay button styles to non icon buttons

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

Change 732992 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Restrict overlay button styles to non icon buttons

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

(This is not related to the technical goal). We hit a few regressions relating to icons so this will help future proof it a little better.

This would mean that section heading icons have focus states.

Screen Shot 2021-11-05 at 10.36.32 AM.png (304×648 px, 12 KB)

In the case of section headings, shouldn't the entire heading have the focus state?

Moving to backlog for now, as I'm going to be out on vacation and want to chat with @bwang before we proceed with this task.

Test wiki created on Patch demo by BWang (WMF) using patch(es) linked to this task:

https://patchdemo.wmflabs.org/wikis/42a757c950/w/

Test wiki created on Patch demo by Jdlrobson using patch(es) linked to this task:

https://patchdemo.wmflabs.org/wikis/c23454a6bd/w/

Jdlrobson added a subscriber: alexhollender_WMF.

@alexhollender_WMF For this one I recommend performing design review with a real device and testing on both beta cluster and patch demo (for real content make sure to test references for example)

This would likely also benefit from an exploratory QA by Edward, so please move to QA when design review is complete.

Change 733009 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Standardize button and icons in MobileFrontend to match Minerva and Vector

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

bwang reopened this task as Open.

Test wiki on Patch demo by BWang (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/42a757c950/w/

I sent an email to Alex to remind him to review this at a later date.

Test wiki on Patch demo by Jdlrobson using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/c23454a6bd/w/