Page MenuHomePhabricator

It should be possible to style pages differently in AMC mode to normal mode
Closed, ResolvedPublic2 Estimated Story Points

Description

Going forward we'll want to style the Special:Contributions page differently depending on whether the user is in AMC or non-AMC mode.

To support this, we'll need to update MobileFrontend to add a class to the body when AMC is enabled.

I suggest the class is mw-mf-amc-enabled.

Needed

  • I should be able to target the desktop Minerva experience ?useskin=minerva&useformat=desktop
  • I should be able to target the mobile Minerva experience ?useskin=minerva&useformat=mobile with AMC disabled
  • I should be able to target the mobile Minerva experience ?useskin=minerva&useformat=mobile with AMC enabled

Event Timeline

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

[mediawiki/extensions/MobileFrontend@master] Add 'mw-mf-amc-enabled' class when AMC is enabled

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

bwang removed bwang as the assignee of this task.Jan 14 2022, 8:31 PM
bwang moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
bwang subscribed.

Technical task so can skip QA. I'll sign off.

Change 754030 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Add 'mw-mf-amc-enabled' class when AMC is enabled

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

Workign as expected. Thanks @bwang !