All 35 Bugs /
0/35 Fixed ✓
HTML/CSSMedium~10 min

CSS Specificity Override Trap (.is-disabled Button)

What's Broken (Symptom)

Adding `.is-disabled` to a primary action button fails to dim its background because a higher-specificity selector `#toolbar .btn-primary` wins.

Expected Behavior

  • • Increase disabled state selector specificity (e.g. `#toolbar .btn-primary.is-disabled` or `.btn.is-disabled:disabled`) or drop the ID selector so `.is-disabled` wins cleanly.
  • • `.is-disabled` button must compute to muted slate background (`rgb(203, 213, 225)` / `#cbd5e1`).

Debugging Hints (0/2 used)

Try spotting the bug in the editor first. Need a nudge? Reveal Hint 1 anytime.

Root Cause Breakdown

Pass all 2 automated verification checks on the right to unlock the full Root Cause explanation.

Automated Bug Verification

2 Checks Ready
  • .is-disabled overrides primary indigo backgroundComputed backgroundColor becomes rgb(203, 213, 225).
  • Disabled cursor updates to not-allowedCursor indicates non-interactive disabled state.
bugfix.html
Live Sandboxed PreviewCtrl + Enter to verify
Console Output0 log(s)
No console output yet. Run Preview or Verify Bug Fix.