Skip to content

docs(avatar, badge): position a badge next to an avatar, not inside it - #2419

Merged
rkaraivanov merged 1 commit into
masterfrom
rkaraivanov/avatar-badge-specifications
Oct 1, 2026
Merged

rkaraivanov merged 1 commit into
masterfrom
rkaraivanov/avatar-badge-specifications

Conversation

@rkaraivanov

@rkaraivanov rkaraivanov commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Description

The avatar clips its default slot, replaces it with the initials and covers it with the image, so a projected badge does not show. Show a positioned wrapper instead, and replace the reference to the non-exported visually hidden component with a CSS utility.

Type of Change

  • Documentation update

Checklist

  • I have updated documentation if needed

The avatar clips its default slot, replaces it with the initials and
covers it with the image, so a projected badge does not show. Show a
positioned wrapper instead, and replace the reference to the unexported
visually hidden component with a CSS utility.
Copilot AI balanced review requested due to automatic review settings October 1, 2026 08:02
@rkaraivanov rkaraivanov added documentation Improvements or additions to documentation avatar badge labels Oct 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The avatar example conveys its success status solely through color despite requiring visible status text.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Updates avatar and badge specifications to document external badge positioning and accessible badge content.

Changes:

  • Positions badges beside avatars using relative wrappers.
  • Replaces the non-exported visually hidden component reference with an application CSS utility.
  • Updates accessibility guidance and limitations.
File Description
src/​components/​avatar/​spec.md Documents wrapper-based status badge positioning.
src/​components/​badge/​spec.md Adds positioning and accessible count guidance.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/components/avatar/spec.md
@rkaraivanov
rkaraivanov merged commit 92565ee into master Oct 1, 2026
8 checks passed
@rkaraivanov
rkaraivanov deleted the rkaraivanov/avatar-badge-specifications branch October 1, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

avatar badge documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants