Page MenuHomePhabricator

Share Highlight: dark background and invisible text on Firefox
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

The quote card's background color is dark, and the text is illegible.

ShareHighlight bug dark background Firefox.jpg (828×1,682 px, 61 KB)

What should have happened instead?:

The quote card with an image has a dominant-color-hex background color. The text is legible and has a dominant-color-contrasting color.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

  • Verified on Firefox browser on an iOS device with light/dark appearance settings.
  • Verified Minerva theme settings are unrelated. Switching Minerva light/dark theme does not affect the card element's background color. It affects other dialog elements: scrollable-container, dialog__header, and dialog__footer.
  • For testing, try BrowserStack (limited access/seats) or a local server on a real mobile device.

Event Timeline

matthiasmullie set the point value for this task to 2.May 5 2026, 4:24 PM

Change #1283992 had a related patch set uploaded (by Kimberly Sarabia; author: Kimberly Sarabia):

[mediawiki/extensions/ReaderExperiments@master] [WIP] Background color patch demo test on Firefox

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

Test wiki created on Patch demo by KSarabia-WMF using patch(es) linked to this task:
https://522c43ec23.catalyst.wmcloud.org/w/

Hey @KSarabia-WMF - patchdemo won't work for testing the share highlights experiment. The only options I can think of are BrowserStack (which many folks, including myself, don't have access to) or a local server on a real mobile device. I'll add that to the task description.

Change #1284739 had a related patch set uploaded (by Kimberly Sarabia; author: Kimberly Sarabia):

[mediawiki/extensions/ReaderExperiments@master] [WIP] Background color patch demo test on Firefox

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

Change #1283992 abandoned by Kimberly Sarabia:

[mediawiki/extensions/ReaderExperiments@master] [WIP] Background color patch demo test on Firefox

Reason:

Accidentally made another gerrit patch.

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

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

https://522c43ec23.catalyst.wmcloud.org/w/

Test wiki created on Patch demo by KSarabia-WMF using patch(es) linked to this task:
https://63519a14d7.catalyst.wmcloud.org/w/

Change #1284739 merged by jenkins-bot:

[mediawiki/extensions/ReaderExperiments@master] Add robust color fallbacks for QuoteCard average-color styling

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

Change #1286838 had a related patch set uploaded (by Marco Fossati; author: Kimberly Sarabia):

[mediawiki/extensions/ReaderExperiments@wmf/1.47.0-wmf.2] Add robust color fallbacks for QuoteCard average-color styling

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

Change #1286838 merged by jenkins-bot:

[mediawiki/extensions/ReaderExperiments@wmf/1.47.0-wmf.2] Add robust color fallbacks for QuoteCard average-color styling

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

Mentioned in SAL (#wikimedia-operations) [2026-05-13T13:27:13Z] <mfossati@deploy1003> Started scap sync-world: Backport for [[gerrit:1286518|[Share Highlight] Exclude section edit links, footnotes from selection (T423658)]], [[gerrit:rEWBA128683823dcc|Add robust color fallbacks for QuoteCard average-color styling (T425358)]], [[gerrit:1286839|Fixed card width (T425710)]], [[gerrit:1286844|Adjust image size to match fixed width (T425710)]], [[gerrit:1286846|ShareHighlight: exclude browsers th

Mentioned in SAL (#wikimedia-operations) [2026-05-13T13:29:09Z] <mfossati@deploy1003> jdlrobson, mfossati: Backport for [[gerrit:1286518|[Share Highlight] Exclude section edit links, footnotes from selection (T423658)]], [[gerrit:rEWBA128683823dcc|Add robust color fallbacks for QuoteCard average-color styling (T425358)]], [[gerrit:1286839|Fixed card width (T425710)]], [[gerrit:1286844|Adjust image size to match fixed width (T425710)]], [[gerrit:1286846|ShareHighlight: exclude browsers that d

Mentioned in SAL (#wikimedia-operations) [2026-05-13T13:40:29Z] <mfossati@deploy1003> Finished scap sync-world: Backport for [[gerrit:1286518|[Share Highlight] Exclude section edit links, footnotes from selection (T423658)]], [[gerrit:rEWBA128683823dcc|Add robust color fallbacks for QuoteCard average-color styling (T425358)]], [[gerrit:1286839|Fixed card width (T425710)]], [[gerrit:1286844|Adjust image size to match fixed width (T425710)]], [[gerrit:1286846|ShareHighlight: exclude browsers t

Rechecked this bug on Italian and English wikis today on my iPhone 11, and it's resolved 😅 The card's background is the dominant average color, and the text is legible.
Moving back to the previous sprint and marking it as resolved.

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

https://63519a14d7.catalyst.wmcloud.org/w/