Skip to content

uui-card-user status badge overlaps avatar due to incorrect bottom positioning #1352

Description

@Deba22

Which exact UI Library version are you using? For example: 1.0.1 - don't just write v1.

v1.17.2

Bug summary

In uui-card-user v1.17.2, the slot[name='tag'] CSS uses bottom positioning instead of top, causing the status badge (e.g. "Disabled") to render at the bottom of the card and overlap the user avatar in the Umbraco CMS backoffice Users grid view.

Specifics

@umbraco-ui/uui-card-user v1.17.2
Umbraco CMS v17.2.2

Steps to reproduce

  1. Open Umbraco CMS v17.2.2 backoffice
  2. Navigate to Users section
  3. Create a user and disable them
  4. View the Users grid — the Disabled badge overlaps the avatar

Expected result / actual result

The status badge should appear in the top-right corner of the card, as it did in v1.17.1

The status badge appears at the bottom of the card, overlapping the avatar

Root cause

In src/components/card-user/card-user.element.ts:

css
slot[name='tag'] {
position: absolute;
bottom: var(--uui-size-space-4); ← should be top
right: var(--uui-size-space-4);
}

Proposed fix

Change bottom to top in the slot[name='tag'] CSS block.

Image Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageThis issue has not been tested by a team member yet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions