[go: up one dir, main page]

Page MenuHomePhabricator

Heading of the 'Since' column on Special:PendingChanges has a larger text size than other columns
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

The Since column heading is has a larger font size than the other column headings. This appears to be because the column is set to have more of a larger font size when it is sortable and appears to me to be due to Codex as opposed to any style set by the FlaggedRevs extension.

Firefox:

Screenshot 2024-08-19 093910.png (107×1 px, 7 KB)

Chrome:

Screenshot 2024-08-19 094854.png (141×2 px, 10 KB)

Steps to replicate the issue
  1. Protect a page with pending changes enabled
  2. Make an edit to the page while logged out
  3. Visit Special:PendingChanges

What happens?:
The Since column heading has a larger size than any other column heading

What should have happened instead?:
The font size of all columns should be equal

Version information

Firefox 129.0.1 (64-bit) or Chrome, local install running latest FlaggedRevs code.

Also seen on https://en.wikipedia.org with Firefox

Acceptance Criteria

  • Demonstrate in Patchdemo that the issue has been fixed in a live example of Special:RecentChanges (using the steps to replicate that are described above)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Dreamy_Jazz renamed this task from Heading of the 'Since' column on Special:PendingChanges has a larger font weight value than other columns to Heading of the 'Since' column on Special:PendingChanges has a larger text size than other columns.Mon, Aug 19, 8:52 AM
Dreamy_Jazz updated the task description. (Show Details)

Looking at the code, the .cdx-table__table__sort-button class has the CSS rule font-size: 1rem; applied to matching elements. No such font-size is applied to the other elements, so it seems that the default font size is applied (in this case from the browser).

On a second look, I'm not so sure that this is because of Codex as the classes are added manually in the PendingChangesPager.

Adding back Codex because I've found that this may also be something about the font-family value:

'Since' column by default'Since' column with font-family set to sans-serif (the value for other columns)
Screenshot 2024-08-19 100414.png (209×559 px, 8 KB)
Screenshot 2024-08-19 100435.png (197×549 px, 7 KB)

It seems that Firefox has the value of MS Shell Dlg \32 unless I add font-family: sans-serif; into the CSS styles for .cdx-table__table__sort-button elements:

Screenshot 2024-08-19 100938.png (76×357 px, 3 KB)

Also a webfonts-changed class is added to the button (which I think might be unrelated).

Change #1063759 had a related patch set uploaded (by Abaris; author: Abaris):

[mediawiki/extensions/FlaggedRevs@master] Normalize font size for sortable column headings

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

Change #1064067 had a related patch set uploaded (by LWatson; author: LWatson):

[design/codex@main] Table: sortable columns inherit font styles

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

Change #1063759 abandoned by Abaris:

[mediawiki/extensions/FlaggedRevs@master] Normalize font size for sortable column headings

Reason:

Due to the 1064067

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

Change #1064067 merged by jenkins-bot:

[design/codex@main] Table: sortable columns inherit font styles

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

Thanks for filing this bug and working on a solution. @Dogu patch helped me discover that the problem originated in Codex. This patch resolves the Codex bug by setting the font-size and font-family to inherit. You can expect these changes in today's Codex release.

Change #1064067 had a related patch set uploaded (by LWatson; author: LWatson):

[design/codex@main] Table: sortable columns inherit font styles

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

lwatson changed the task status from Open to In Progress.Tue, Aug 20, 6:59 PM

Change #1064134 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/core@master] Update Codex from v1.11.0 to v1.11.1

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

Change #1064134 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v1.11.0 to v1.11.1

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

Novem_Linguae subscribed.

I assume closing this was a misclick based on previous comment.

I assume closing this was a misclick based on previous comment.

No, that comment was made in error it turns out. On Beta (where the latest version of Codex is now being used), the font size for that element is correctly set at 14px in the Vector skin. I must have been seeing some cached styles.

Here's a link to the Special:PendingChanges page on Beta: https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Special:PendingChanges

Here's a screenshot showing the correct results on Beta:

Screenshot 2024-08-21 at 2.35.57 PM.png (1×1 px, 308 KB)

Versus this screenshot, showing the overly-large text that is still visible in production:

Screenshot 2024-08-21 at 2.36.19 PM.png (1×1 px, 300 KB)

This fix will reach production with the release train tomorrow, so this task can be closed.