Skip to content

Commit c8a9e95

Browse files
committed
feat(buttons): additional button changes
1 parent 9c3a013 commit c8a9e95

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@
131131
$focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
132132
}
133133

134+
@if not($active-foreground) and $active-background {
135+
$active-foreground: adaptive-contrast(var(--active-background));
136+
}
137+
134138
@if not($focus-visible-background) and $focus-background {
135139
$focus-visible-background: var(--focus-background);
136140
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@
130130
$focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
131131
}
132132

133+
@if not($active-foreground) and $active-background {
134+
$active-foreground: adaptive-contrast(var(--active-background));
135+
}
136+
133137
@if not($focus-visible-background) and $focus-background {
134138
$focus-visible-background: var(--focus-background);
135139
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
$focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
5959
}
6060

61+
@if not($active-foreground) and $active-background {
62+
$active-foreground: adaptive-contrast(var(--active-background));
63+
}
64+
6165
@if $variant == 'material' or $variant == 'fluent' {
6266
@if not($hover-foreground) and $foreground {
6367
$hover-foreground: var(--foreground);

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
$focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
5959
}
6060

61+
@if not($active-foreground) and $active-background {
62+
$active-foreground: adaptive-contrast(var(--active-background));
63+
}
64+
6165
@if $variant == 'material' or $variant == 'fluent' {
6266
@if not($hover-foreground) and $foreground {
6367
$hover-foreground: var(--foreground);

0 commit comments

Comments
 (0)