Skip to content

v1.1.0

Latest

Choose a tag to compare

@PhilMeyr PhilMeyr released this 15 Jun 18:13
· 1 commit to master since this release
03be839

Token-driven button variants, radius tokens, and DRY component rendering. Customization now happens through token configuration — no component forks needed.

Added

  • radius token group (button/box) and Tokens#radius/#radius! accessors.
  • Tokens#button_style(variant) resolver and the Tokens::ButtonStyle value object: button variants (incl. an outline secondary) are now token-driven — set <variant>_text/<variant>_border colors instead of forking the component.
  • Box-scoped info_box_background/info_box_border/info_box_text tokens (falling back to the page palette) plus a box border-radius.
  • Tokens#load(group: {...}) bulk-loader and a single Tokens#to_h snapshot.

Changed

  • <button> and <cta> share a bulletproof_button_table scaffold; <cta> drops its hardcoded 4px radius in favor of the radius token.
  • The corner radius is now applied by default on .button/.cta (the opt-in .radius class is gone); .button.secondary/.cta.secondary mirror the secondary color/border tokens.
  • Cta/InfoBox#transform marked overridable.

Fixed

  • Outline secondary border no longer doubled on the nested anchor (cell-only).
  • Dark mode keeps the secondary text readable on an outline (light) fill.

Removed

  • Tokens#colors/#fonts/#spacings readers — use Tokens#to_h instead.

Full Changelog: https://github.com/AdVitam/activemail/blob/master/CHANGELOG.md