From 816d2c142de49c39d1d4fb832250db4d79200238 Mon Sep 17 00:00:00 2001 From: Simeon Simeonoff Date: Thu, 2 Oct 2025 10:53:59 +0300 Subject: [PATCH 1/2] refactor(themes): set avatar size only in card thumbnail --- .../src/lib/core/styles/components/card/_card-theme.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/igniteui-angular/src/lib/core/styles/components/card/_card-theme.scss b/projects/igniteui-angular/src/lib/core/styles/components/card/_card-theme.scss index dd3256888a9..1778f382f62 100644 --- a/projects/igniteui-angular/src/lib/core/styles/components/card/_card-theme.scss +++ b/projects/igniteui-angular/src/lib/core/styles/components/card/_card-theme.scss @@ -29,10 +29,6 @@ &:hover { box-shadow: none; } - - igx-avatar { - --ig-size: #{if($variant == 'indigo', 3, 1)}; - } } %igx-card--elevated { @@ -93,6 +89,10 @@ margin-block: auto; } + > igx-avatar { + --ig-size: #{if($variant == 'indigo', 3, 1)}; + } + &:empty { display: none; } From ff0a10889491e2b3644856b26e9654a50dba285a Mon Sep 17 00:00:00 2001 From: Simeon Simeonoff Date: Thu, 2 Oct 2025 11:03:05 +0300 Subject: [PATCH 2/2] refactor(theme): treat all avatars the same --- .../src/lib/core/styles/components/card/_card-theme.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/igniteui-angular/src/lib/core/styles/components/card/_card-theme.scss b/projects/igniteui-angular/src/lib/core/styles/components/card/_card-theme.scss index 1778f382f62..ad98603220d 100644 --- a/projects/igniteui-angular/src/lib/core/styles/components/card/_card-theme.scss +++ b/projects/igniteui-angular/src/lib/core/styles/components/card/_card-theme.scss @@ -89,7 +89,7 @@ margin-block: auto; } - > igx-avatar { + igx-avatar { --ig-size: #{if($variant == 'indigo', 3, 1)}; }