Skip to content

[React] Set background through correct css var#1077

Open
onlyexeption wants to merge 1 commit into
vnextfrom
ibarakov/fix-avatar-styling
Open

[React] Set background through correct css var#1077
onlyexeption wants to merge 1 commit into
vnextfrom
ibarakov/fix-avatar-styling

Conversation

@onlyexeption
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the avatar styling sample to apply the avatar background color via the component’s intended CSS custom property, rather than overriding the base part background directly.

Changes:

  • Set --ig-avatar-background on igc-avatar to control the avatar background color.
  • Remove the direct background rule from igc-avatar::part(base) while keeping the border styling intact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@onlyexeption onlyexeption changed the title fix(avatar): set background through correct css var [React] Set background through correct css var Jun 1, 2026
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.

2 participants