Skip to content

fix(frontend): make disabled rerun fields legible in dark mode - #2498

Open
feiiiiii5 wants to merge 2 commits into
rhesis-ai:mainfrom
feiiiiii5:fix/rerun-disabled-visible-dark
Open

fix(frontend): make disabled rerun fields legible in dark mode#2498
feiiiiii5 wants to merge 2 commits into
rhesis-ai:mainfrom
feiiiiii5:fix/rerun-disabled-visible-dark

Conversation

@feiiiiii5

Copy link
Copy Markdown
Contributor

Fixes #2400

What

Disabled fields in the re-run test modal were invisible in dark mode: drawerDisabledFieldSx coloured the text with greyscale.border, which has almost no contrast against the dark drawer surface.

Change

Use text.secondary for the disabled field text (both color and WebkitTextFillColor), so disabled options stay visible but clearly marked as disabled in both themes.

Verification

npm run type-check passes; eslint and prettier clean on the changed file. Change is styling-only in the shared drawer form field style.

Signed-off-by: fei <204683769+feiiiiii5@users.noreply.github.com>
@peqy

peqy Bot commented Aug 16, 2026

Copy link
Copy Markdown

Looks good. Switching disabled drawer field text to theme.palette.text.secondary should restore contrast in dark mode without changing behavior. Ship it.

The hardcoded-styles CI scanner treats "rhesis-ai#2400" in a comment as a color.
Rephrase the comment to reference the issue number without a hex-like token.

Signed-off-by: fei <204683769+feiiiiii5@users.noreply.github.com>

@peqy peqy Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-checked latest commit: change is still the same functional fix (disabled drawer field text uses theme.palette.text.secondary for better contrast in dark mode). Looks good; approving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-run test modal: non-selectable items invisible in dark mode

1 participant