Add a standardized CSS component for users.
Review Request #14970 — Created March 26, 2026 and submitted
We have references to users throughout the UI, which sometimes are
accompanied by an avatar and sometimes badges. We don't really have a
standard way of displaying these, and some in-progress work's about to
be affected by that once again.This change introduces a new
rb-c-userCSS component, a dedicated
template file for generating it, and a Storybook file for viewing it.The component standardizes the layout needed to get proper alignment for
the user, avatar, and badges, helping it fit in elsewhere.Existing call sites have been updated to use the new component.
Tested all uses throughout the UI, making sure content was aligned and
spaced out correctly.Tested all options in Storybook.
| Summary | ID |
|---|---|
| 5622c2d2ab708182ff1020e9d8ad6992b3cc02b2 |
| Description | From | Last Updated |
|---|---|---|
|
Typo: area-label -> aria-label |
|
|
|
The actual implementation has the avatar before the display name. |
|
|
|
Given that this is overall a <span>, should we use inline-flex here to avoid it turning into a block? |
|
|
|
Seems like this should be using user_show_avatar (computed var) instead of show_avatar (raw value) |
|
- Change Summary:
-
- Added docs and updates for customizing the avatar.
- Fixed a missing
rolein the user badge component in the user story.
- Commits:
-
Summary ID ae135f40da7cdf9a0a60e0d34407d21f2fe9925c 3e9de54e99e8b36ae0b219446511583c1c7df025 - Diff:
-
Revision 2 (+444 -66)
Checks run (2 succeeded)
- Change Summary:
-
area-label->aria-label.- Fixed issues in the docs.
- Switched to
inline-flex. - Fixed the component template to reference the computed
user_show_avatar.
- Commits:
-
Summary ID 3e9de54e99e8b36ae0b219446511583c1c7df025 5622c2d2ab708182ff1020e9d8ad6992b3cc02b2 - Diff:
-
Revision 3 (+444 -66)