Page MenuHomePhabricator

Exception handling for appearance settings (font-size and width) - Vector
Closed, ResolvedPublic3 Estimated Story Points

Description

Background

  • This is a follow-up to T361158. In that task, exception handling was added only to the night mode setting. This task aims to add exception handling for the width and font-size settings as well.

User story

  • As a reader, if either my font-size settings or width settings are not respected a given page, I want a notice explaining why.

Requirements

  • If a certain page has an font-size or limited-width override, it should appear with the overridden settings, the user should not be able to change the settings, the radio buttons should appear disabled, and a notice should appear below the related Appearance menu settings.

Design

From T361158 (to be updated).

image.png (1×488 px, 73 KB)

Acceptance criteria

Communication criteria - does this need an announcement or discussion?

  • No

Event Timeline

Action Items:

  • Implement changes to disable radio button preferences and freeze font size to small on all exception pages.
  • Make necessary adjustments to the UI elements and conduct user testing on the updated design.
  • Document the chosen design approach for disabling preferences and freezing font size on exception pages.
  • Detail the rationale behind the decision and provide clear guidelines for implementation.
  • Schedule a meeting between Justin and Jan to discuss further options regarding the behavior of radio buttons on exception pages.
  • Explore alternative solutions and gather input before finalizing the implementation.
  • Evaluate feasibility of removing all exceptions to font size preferences as an alternative solution.
  • This evaluation should consider potential impact on user experience and accessibility requirements.

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

[mediawiki/skins/Vector@master] [POC] Radio buttons should work but not change class when disabled

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

The fact that the original design of letting users change settings even though those settings are not applied on exception pages and giving them a notice to explain why the changes are not taking effect, was relatively complicated for implementation.

To unblock dev, I included a design for the disabled radios in the description. Moving to Sprint 2 and putting this in ready for dev.

Jdlrobson assigned this task to Jdrewniak.
Jdlrobson added a subscriber: JScherer-WMF.
Jdlrobson set the point value for this task to 3.Apr 29 2024, 5:32 PM

Change #1026939 had a related patch set uploaded (by Jdrewniak; author: Jdrewniak):

[operations/mediawiki-config@master] [Vector 2022] Test night mode disabled on mainpage on beta cluster.

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

Change #1026939 abandoned by Jdrewniak:

[operations/mediawiki-config@master] [Vector 2022] Test night mode disabled on mainpage on beta cluster.

Reason:

Never mind, the config inherits from the Minerva settings which disable night mode on the page "Banana".

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

There hasn't been much activity on this task last even though it's been in "doing" all week. Unfortunately a few complications arose that have delayed this work. This task was original split from T361158 where a visual design for exception handling for all settings was proposed. This task was meant to split the night-mode settings from width/font-size, but it turns out these two settings could have been split further. During the course of this work, we actually produced the following tasks based on new information:

  1. T363834 Add Feature Default Values Configuration Options in Vector and Minerva Skins - We realized we don't have the configuration logic for the font-size setting. This task propose a re-design of the configuration architecture and applying it to the font-size setting (T360452 also seems related).
  2. T364015 Exception handling for appearance settings (width) - Vector - The width settings behave somewhat unusually at ultra-wide resolutions, so we'd like to validate the behaviour with Design
  3. T364159 - (Bug) As an anonymous user I get night theme enabled on pages where night mode should be disabled - While working on this task we discovered that the previously implemented night-mode override has a bug that makes it ineffective for anonymous users. It seems sensible to solve that bug first to avoid introducing it for the width & font-size settings.
ovasileva claimed this task.
ovasileva subscribed.

Will sign this off as it's been split into three new separate tickets.

Change #1021515 abandoned by Jdlrobson:

[mediawiki/skins/Vector@master] [POC] Radio buttons should work but not change class when disabled

Reason:

Done in https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/1018820 (I think!)

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