Skip to content

[Angular] Set background through correct css var#3966

Merged
kdinev merged 3 commits into
vnextfrom
ibarakov/fix-avatar-styling
Jun 25, 2026
Merged

[Angular] Set background through correct css var#3966
kdinev merged 3 commits into
vnextfrom
ibarakov/fix-avatar-styling

Conversation

@onlyexeption

@onlyexeption onlyexeption commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Closes #1695

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.

Pull request overview

This PR aims to fix how igx-avatar background colors are customized by switching from direct background styling / generic CSS vars to a (supposedly) correct avatar-specific CSS custom property.

Changes:

  • Updated the Tailwind sample to set the avatar background via an arbitrary CSS variable (![--ig-avatar-background:...]).
  • Updated several avatar SCSS samples to set --ig-avatar-background instead of using background: ....

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
src/app/layouts/avatar/avatar-tailwind-styling/avatar-tailwind-styling.component.html Changes Tailwind styling to set avatar background via a CSS custom property.
src/app/layouts/avatar/avatar-sample-1/avatar-sample-1.component.scss Switches avatar background styling from background to a CSS custom property.
src/app/layouts/avatar/avatar-sample-3/avatar-sample-3.component.scss Switches avatar background styling from background to a CSS custom property in two selectors.
src/app/layouts/avatar/avatar-sample-4/avatar-sample-4.component.scss Switches avatar background styling from background to a CSS custom property.

💡 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 [Angular] Set background through correct css var Jun 1, 2026
@kdinev kdinev merged commit de00f9d into vnext Jun 25, 2026
4 checks passed
@kdinev kdinev deleted the ibarakov/fix-avatar-styling branch June 25, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants