feat(ui5-avatar): add mode property with three modes#13004
Open
plamenivanov91 wants to merge 11 commits intomainfrom
Open
feat(ui5-avatar): add mode property with three modes#13004plamenivanov91 wants to merge 11 commits intomainfrom
plamenivanov91 wants to merge 11 commits intomainfrom
Conversation
Avatar component now supports 'mode' property with 'Default' and 'Decorative' options. It allows to render the avatar in decorative mode, which is non-interactive and hidden from assistive technologies.
Collaborator
|
🚀 Deployed on https://pr-13004--ui5-webcomponents-preview.netlify.app |
nnaydenow
reviewed
Feb 3, 2026
nnaydenow
reviewed
Feb 3, 2026
- new 'mode' property with 'Interactive' value - added since tags - updated samples and documentation - fixed related tests
Contributor
|
as 2.19 is released - the since info should be updated to 2.20 |
yanaminkova
requested changes
Feb 9, 2026
Contributor
There was a problem hiding this comment.
Currently, when mode="Interactive" is set, the avatar does not appear interactive because the corresponding CSS styles are not applied.
Also, until the interactive property is deleted in version 3.0, its current behavior must remain unchanged. Currently, when the interactive property is used, the avatar only appears visually interactive, but it is internally rendered with role="img".
9116c5c to
40c41ac
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Avatar component now supports the 'mode' property with three options:
making it hidden from assistive technologies
interaction support
The existing 'interactive' boolean property remains fully supported and
takes precedence over the 'mode' property. When interactive=true, the
avatar behaves as interactive regardless of the mode value.
Both interactive=true and mode="Interactive" produce identical behavior,
providing two ways to make avatars interactive with proper accessibility.