Skip to content

fix: a pressed ToggleButton draws its label in the accent ink - #497

Merged
tannevaled merged 1 commit into
mainfrom
toggle-ink
Oct 22, 2026
Merged

tannevaled merged 1 commit into
mainfrom
toggle-ink

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

A pressed ToggleButton painted its label in OnSurface on the Accent face: dark ink on a dark accent in a light theme (the go-slides playground's new Minimap / Slides toggles were unreadable). The label now uses accentInk (the theme's OnAccent or Background), like the other accent-faced widgets; contrast >= 3:1 against the accent in all four tested themes.

Test: TestPressedToggleLabelContrastsWithTheAccentFace.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 38365ac into main Oct 22, 2026
1 check passed
@tannevaled
tannevaled deleted the toggle-ink branch October 22, 2026 08:03
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