Skip to content

v0.138.4

Choose a tag to compare

@github-actions github-actions released this 15 May 14:02
· 34 commits to main since this release
43d7461

Patch Changes

  • #1171 5a28ef76 Thanks @tenphi! - Fix high-contrast scheme rendering of disabled brand-tinted chips on PRIMARY-style buttons. The #<theme>-accent-disabled-surface tokens (primary, success, danger, warning, note, special) had an inverted contrast pair ([1.4, 1.3] — first value > second), which made the chip slightly less contrasty in high-contrast mode than in regular mode — opposite to the HC scheme's intent and inconsistent with every other contrast pair in palette.ts. Corrected to [1.4, 1.5]. Light and dark modes are unchanged; only the high-contrast scheme bumps from cr ≈ 1.3 to cr ≈ 1.5 against #surface.

  • #1171 5a28ef76 Thanks @tenphi! - Special theme: special-variant components (Button, ItemAction, ItemButton, etc.) now render consistently across light, dark, and high-contrast schemes. Previously, dark mode inverted the brand-purple pressed/focused border (#purple-text, mode: 'auto') and the PRIMARY disabled chip (#primary-disabled, scheme-adaptive neutral) — both visibly different from the light-mode design.

    The fix is a new standalone specialTheme in src/tokens/palette.ts (not extended from defaultTheme) whose tokens are all mode: 'fixed', so the resolved OKHSL is identical in every scheme. It emits #special-surface, #special-accent-fill, #special-accent-fill-hover, #special-accent-fill-text, #special-accent-text, #special-accent-disabled-surface, and #special-accent-disabled-surface-text. The PRIMARY disabled state now uses a brand-tinted chip (#special-accent-disabled-surface) instead of a neutral grey, and OUTLINE's disabled fill no longer mirrors the pressed state. The legacy #fixed-dark and #fixed-primary-text aliases keep working — they now resolve to #special-surface and #special-accent-text respectively. Validation borders (#danger-text / #success-text) intentionally stay scheme-adaptive.