Skip to content

Commit de00f9d

Browse files
authored
Merge pull request #3966 from IgniteUI/ibarakov/fix-avatar-styling
[Angular] Set background through correct css var
2 parents 73db702 + 42c9ebb commit de00f9d

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.igx-avatar{
2-
background: #e41c77;
2+
--ig-avatar-background: #e41c77;
33
color: black;
44
margin: 15px;
55
}

src/app/layouts/avatar/avatar-sample-3/avatar-sample-3.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
}
1515

1616
.avatar-sample.initials .igx-avatar{
17-
background: #e41c77;
17+
--ig-avatar-background: #e41c77;
1818
}
1919

2020
.avatar-sample.icon .igx-avatar{
21-
background: #9e9e9e;
21+
--ig-avatar-background: #9e9e9e;
2222
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.igx-avatar{
2-
background: #9e9e9e;
2+
--ig-avatar-background: #9e9e9e;
33
margin: 15px;
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<igx-avatar class="!light-avatar ![--background:#FF4E00]" initials="DY" shape="rounded"></igx-avatar>
1+
<igx-avatar class="!light-avatar ![--ig-avatar-background:#FF4E00]" initials="DY" shape="rounded"></igx-avatar>

0 commit comments

Comments
 (0)