You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compression Mode: the selected option can't be read on WordPress 7.1 #1221
On WordPress 7.1, the selected option of the Compression Mode switch is white text on an almost white button, so you can't tell which mode is active. On WordPress 7.0 the same option is white on a light grey highlight and can be read. Choosing and saving a mode still works.
Steps to reproduce
WordPress 7.1 (seen on 7.1-RC1, 7.1.3 and 7.1.4) with Optimole 4.2.18 (4.2.17 too), connected.
Expected: the selected mode ("Speed Optimized" on a default site) is highlighted and readable, as on WordPress 7.0.
Actual: its label is white (rgb(255, 255, 255)) on near white and can't be read. On 7.1-RC1 it also wraps onto two lines. "Quality Optimized" and "Custom" read normally. Nothing is logged in the browser console or in debug.log.
One-click repro: WordPress 7.1.4 with Optimole 4.2.18 in Playground. A small mu-plugin connects Optimole to a fake account, so no real service is called. It opens on Optimole's dashboard; go to Settings → Advanced → Compression.
Cause:assets/src/dashboard/style.scss:76-86 paints the checked option's text white and draws its highlight on .components-toggle-group-control-option-base + div > div. WordPress 7.1's ToggleGroupControl no longer renders that element, so the white text stays and the highlight is gone. With those rules removed in the browser, WordPress's own control shows the selected mode readable (blue, in an outlined box).
Found by the qa-wp-compat routine in its WordPress 7.1 practice runs, 2026-10-28 to 2026-11-03.
On WordPress 7.1, the selected option of Optimole's Compression Mode switch can't be read: its label is white text on a white button, so the switch looks like it has nothing selected. Choosing and saving a mode still works; only the highlight is missing.
Requires: WordPress 7.1 or newer (7.0 still shows the highlight).
✅ Reproduced: on WordPress 7.1.4 the first segment of the switch looked empty; "Speed Optimized" was white on white, while "Quality Optimized" and "Custom" read normally
QA agent — 🟢 Passing checks · Compression modes are highlighted and remain saved on WordPress 7.1.
On a test site with a simulated connection, the selected mode was visibly readable at desktop and narrow widths. All three modes stayed selected after saving and reloading, and the selector also worked on WordPress 7.0. The selected text measured 3.75:1 contrast, below WCAG's 4.5:1 guidance for normal-size text.
Worth a human look
Check the selector on a WordPress release newer than 7.1 when one becomes available.
Review the selected label's 3.75:1 contrast against the product's accessibility requirements.
Checks (4 passed)
✅ On WordPress 7.1, the default Speed Optimized compression mode is visibly highlighted and its label is readable, including at narrower screen widths.
✅ On WordPress 7.1, selecting each compression mode moves the visible, readable highlight to that option.
✅ A compression mode chosen and saved in Settings remains selected after reloading the page.
✅ On WordPress 7.0, the selected compression mode remains highlighted and readable with the changed dashboard styles.
Activity
girishpanchal30 commentedon Nov 4, 2026
I have fixed it with PR #1225
milicavs commentedon Nov 4, 2026
🧪 QA steps and test links
On WordPress 7.1, the selected option of Optimole's Compression Mode switch can't be read: its label is white text on a white button, so the switch looks like it has nothing selected. Choosing and saving a mode still works; only the highlight is missing.
Requires: WordPress 7.1 or newer (7.0 still shows the highlight).
2b2bcd9In the links:
debug.log.Reproduce on Optimole 4.2.18:
Edge cases
Fix: #1225 (open)
pirate-bot commentedon Nov 4, 2026
QA agent — 🟢 Passing checks · Compression modes are highlighted and remain saved on WordPress 7.1.
On a test site with a simulated connection, the selected mode was visibly readable at desktop and narrow widths. All three modes stayed selected after saving and reloading, and the selector also worked on WordPress 7.0. The selected text measured 3.75:1 contrast, below WCAG's 4.5:1 guidance for normal-size text.
Worth a human look
Checks (4 passed)
Full report, evidence and session trail
pirate-bot commentedon Nov 12, 2026
🎉 This issue has been resolved in version 4.2.20 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀