Skip to content

feat(ui5-avatar-badge): add colorScheme property for extended color palette - #14009

Open
plamenivanov91 wants to merge 5 commits into
mainfrom
avatar-extended-color
Open

feat(ui5-avatar-badge): add colorScheme property for extended color palette#14009
plamenivanov91 wants to merge 5 commits into
mainfrom
avatar-extended-color

Conversation

@plamenivanov91

@plamenivanov91 plamenivanov91 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Adds a new colorScheme property accepting values "1" through "10",
backed by the SAP indication color tokens (sapIndicationColor_N_*).
This follows the same pattern used by ui5-tag and avoids introducing
a new enum, keeping the API intentionally loose to match established
conventions.

Each value maps directly to its own CSS rule setting background,
border-color, and text color from the indication palette, plus a
box-shadow via sapContent_Shadow1 for visual depth. The semantic
state property takes precedence over colorScheme when set to any
value other than None.

Fixes: #13925
JIRA: BGSOFUIPIRIN-7121

…alette

Adds a new `colorScheme` property accepting `Accent1` through `Accent10`,
matching the color scheme values available on `ui5-avatar`. The semantic
`state` property takes precedence over `colorScheme` when set to any
value other than `None`.

CSS custom properties inherited from the parent Avatar are reused so the
badge background and icon color stay in sync with the avatar across all
themes without duplicating theme token mappings.

Fixes: #13925
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

Replace the AccentN color scheme values with numeric "1"-"10" values
backed by sapIndicationColor_N_* tokens, matching the ui5-tag pattern.
Each color scheme gets its own per-rule declaration (no catch-all),
adds a box-shadow via sapContent_Shadow1, and uses dedicated border
color tokens instead of reusing the text color token.

Update test page, website sample (HTML + React), docs description,
and Cypress visual tests to reflect the new values.
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.

[Feature Request]: Avatar badge to support Extended color palette

1 participant