Skip to content

Commit 861bc47

Browse files
committed
feat(icon-button): update themes
1 parent 82e22fe commit 861bc47

File tree

3 files changed

+12
-20
lines changed

3 files changed

+12
-20
lines changed

projects/igniteui-angular/src/lib/core/styles/components/icon-button/_contained-icon-button-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
@if not($focus-border-color) and $focus-background {
155155
$focus-border-color: hsla(from var(--focus-background) h s l / 0.3);
156156
}
157-
} @else {
157+
} @else if $variant == 'bootstrap' {
158158
@if not($disabled-background) and $background {
159159
$disabled-background: hsla(from var(--background) h s l / 0.2);
160160
}

projects/igniteui-angular/src/lib/core/styles/components/icon-button/_flat-icon-button-theme.scss

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@
133133
$focus-hover-foreground: var(--hover-foreground);
134134
}
135135

136+
@if not($disabled-foreground) and $foreground {
137+
$disabled-foreground: hsla(from var(--foreground) h s l / 0.5);
138+
}
139+
136140
@if $variant == 'bootstrap' {
137141
@if not($active-foreground) and $foreground {
138142
$active-foreground: hsl(from var(--foreground) h s calc(l * 0.7));
@@ -152,16 +156,6 @@
152156
}
153157
}
154158

155-
@if not($disabled-foreground) and $foreground {
156-
$disabled-foreground: hsla(from var(--foreground) h s l / 0.5);
157-
}
158-
159-
@if $variant == 'fluent' {
160-
@if not($disabled-background) and $foreground {
161-
$disabled-background: hsla(from var(--foreground) h s l / 0.1);
162-
}
163-
}
164-
165159
@return extend(
166160
$theme,
167161
(

projects/igniteui-angular/src/lib/core/styles/components/icon-button/_outlined-icon-button-theme.scss

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@
111111
@if not($border-color) and $foreground {
112112
$border-color: hsla(from var(--foreground) h s l / 0.7);
113113
}
114-
115-
@if not($disabled-background) and $foreground {
116-
$disabled-background: hsla(from var(--foreground) h s l / 0.1);
117-
}
118114
}
119115
}
120116

@@ -194,12 +190,14 @@
194190
}
195191
}
196192

197-
@if not($disabled-foreground) and $foreground {
198-
$disabled-foreground: hsla(from var(--foreground) h s l / 0.5);
199-
}
193+
@if $variant == 'bootstrap' or $variant == 'indigo' {
194+
@if not($disabled-foreground) and $foreground {
195+
$disabled-foreground: hsla(from var(--foreground) h s l / 0.5);
196+
}
200197

201-
@if not($disabled-border-color) and $border-color {
202-
$disabled-border-color: hsla(from var(--border-color) h s l / 0.2);
198+
@if not($disabled-border-color) and $border-color {
199+
$disabled-border-color: hsla(from var(--border-color) h s l / 0.2);
200+
}
203201
}
204202

205203
@return extend(

0 commit comments

Comments
 (0)