Skip to content

Use text.primary for Jungfrau panel headings - #144

Open
ndevenish wants to merge 1 commit into
DiamondLightSource:mainfrom
ndevenish:fix_text
Open

Use text.primary for Jungfrau panel headings#144
ndevenish wants to merge 1 commit into
DiamondLightSource:mainfrom
ndevenish:fix_text

Conversation

@ndevenish

Copy link
Copy Markdown

primary.contrastText was not theme-aware.

From:
image

To:
image
image

These headings sit on the page and card backgrounds, not on a primary
coloured surface, so primary.contrastText was wrong: it resolves to #ffffff
in both schemes, leaving white text on the #fff paper of the light scheme.
text.primary is scheme aware, so the headings stay readable in both.
@ndevenish
ndevenish requested a review from a team as a code owner July 29, 2026 14:00
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.

1 participant