IconButtonTokens
Component tokens for icon button components. Centralises all flag-driven token resolution so that icon button composables read from a single source of truth instead of inlining the flag check at every call site. When the rebranding feature flag is eventually removed, only this file changes.
Because icon button composables accept a caller-supplied Shape parameter as the legacy fallback, tokens are expressed as resolveShape functions rather than plain properties.
Functions
Link copied to clipboard
Resolves the container shape for icon buttons that use SparkTheme.shapes.full when rebranded. Falls back to fallback when rebranding is inactive.
Link copied to clipboard
Resolves the container shape for icon buttons that use ButtonShape.Pill when rebranded. Falls back to fallback when rebranding is inactive.