Skip to content

Compression Mode: the selected option can't be read on WordPress 7.1 #1221

Closed

Description

@kushh23

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

  1. 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.
  2. WP Admin → Optimole → Settings → Advanced → Compression.
  3. Look at the Compression Mode switch.

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.

Activity

  1. added theissue type on Nov 3, 2026
  2. girishpanchal30 commented on Nov 4, 2026

    @girishpanchal30
    Contributor

    I have fixed it with PR #1225

  3. milicavs commented on Nov 4, 2026

    @milicavs

    🧪 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).

    Link Build Bot check
    Reproduce the bug Optimole 4.2.18 (released) ✅ 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
    Verify the fix PR #1225 build 2b2bcd9 ✅ Fixed: "Speed Optimized" showed as white text on a solid blue highlight, and clicking "Quality Optimized" moved the highlight to it

    In the links:

    • Step 1 is already done (WordPress 7.1, Optimole connected to a fake account, so no real service is called), and the links open on Optimole → Settings.
    • The plugin reports 4.2.18 on both links; the Verify link runs the PR build.
    • Tools → QA Logs shows debug.log.

    Reproduce on Optimole 4.2.18:

    1. On WordPress 7.1, connect Optimole.
    2. Go to Optimole → Settings → Advanced → Compression.
    3. Look at the Compression Mode switch, then click "Quality Optimized" and "Custom" in turn.
    • Bug: the selected option's label is white on white and can't be read ("Speed Optimized" on a default site, and whichever option you click).
    • Fixed: the selected option has a solid blue highlight with readable white text, and the highlight follows each click.
    Edge cases
    • Select "Custom": the quality slider still appears, and the highlight stays on "Custom".
    • Save a mode and reload the page: the saved mode is the highlighted one.
    • WordPress 7.0: the switch still shows the selected option clearly (no regression on older WordPress).
    • Other Optimole switches built the same way (for example under Lazyload or Resize): their selected option is readable too.

    Fix: #1225 (open)

  4. pirate-bot commented on Nov 4, 2026

    @pirate-bot
    Collaborator

    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

    1. Check the selector on a WordPress release newer than 7.1 when one becomes available.
    2. 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.

    Full report, evidence and session trail

  5. pirate-bot commented on Nov 12, 2026

    @pirate-bot
    Collaborator

    🎉 This issue has been resolved in version 4.2.20 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  6. added
    releasedIndicate that an issue has been resolved and released in a particular version of the product.
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

releasedIndicate that an issue has been resolved and released in a particular version of the product.

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions