Skip to content

Commit 9aa40c3

Browse files
authored
fix(action-strip): icon color override (#9804)
1 parent e86a130 commit 9aa40c3

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ All notable changes for each version of this project will be documented in this
8383
</igx-expansion-panel>
8484
```
8585

86+
### Themes
87+
- **Breaking Change** - The `$color` property of the `igx-action-strip-theme` has been renamed as follows:
88+
- `$color` -> `$icon-color`
89+
8690
## 12.0.3
8791

8892
### General
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "../../common/schema/theme-props.schema.json",
3+
"changes": [
4+
{
5+
"name": "$color",
6+
"replaceWith": "$icon-color",
7+
"owner": "igx-action-strip-theme"
8+
}
9+
]
10+
}

projects/igniteui-angular/src/lib/core/styles/components/action-strip/_action-strip-theme.scss

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/// @param {Map} $palette [null] - The palette used as basis for styling the component.
1010
/// @param {Map} $schema [$light-schema] - The schema used as basis for styling the component.
1111
///
12-
/// @param {Color} $color [null] - The color used for the actions icons.
12+
/// @param {Color} $icon-color [null] - The color used for the actions icons.
1313
/// @param {Color} $background [null] - The color used for the action strip component content background.
1414
/// @param {Color} $actions-background [null] - The color used for the actions background.
1515
/// @param {Color} $delete-action [null] - The color used for the delete icon in action strip component.
@@ -30,7 +30,7 @@
3030
3131
$background: null,
3232
$actions-background: null,
33-
$color: null,
33+
$icon-color: null,
3434
$delete-action: null,
3535
$actions-border-radius: null,
3636
) {
@@ -49,16 +49,16 @@
4949
if($actions-border-radius, $actions-border-radius, map-get($action-strip-schema, 'actions-border-radius')), 0, 24px
5050
);
5151

52-
@if not($color) and $actions-background {
53-
$color: text-contrast($actions-background);
52+
@if not($icon-color) and $actions-background {
53+
$icon-color: text-contrast($actions-background);
5454
}
5555

5656
@return extend($theme, (
5757
name: $name,
5858
palette: $palette,
5959
background: $background,
6060
actions-background: $actions-background,
61-
color: $color,
61+
icon-color: $icon-color,
6262
delete-action: $delete-action,
6363
actions-border-radius: $actions-border-radius,
6464
));
@@ -175,7 +175,7 @@
175175
justify-content: center;
176176
pointer-events: all;
177177
position: relative;
178-
color: --var($theme, 'color');
178+
color: --var($theme, 'icon-color');
179179
border-radius: --var($theme, 'actions-border-radius');
180180
background: --var($theme, 'actions-background');
181181
max-height: 36px;
@@ -185,12 +185,12 @@
185185
}
186186

187187
igx-icon {
188-
color: --var($theme, 'color');
188+
color: --var($theme, 'icon-color');
189189
}
190190

191191
[igxButton='icon'] {
192192
igx-icon {
193-
color: --var($theme, 'color');
193+
color: --var($theme, 'icon-color');
194194
}
195195

196196
@if $variant == 'indigo-design' {

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_action-strip.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/// Generates a light action-strip schema.
1010
/// @type {Map}
11-
/// @prop {Color} color ["'currentColor'"] - The color used for the actions icons.
11+
/// @prop {Color} icon-color ["'currentColor'"] - The color used for the actions icons.
1212
/// @prop {Map} background [igx-color: ('grays', 100] - The color used for the action strip component content background.
1313
/// @prop {Map} actions-background [igx-color: ('grays', 200), to-opaque: #fff, rgba: .9] - The color used for actions background.
1414
/// @prop {Map} delete-action [igx-color: ('error')] - The color used for the delete icon in action strip component.
@@ -31,7 +31,7 @@ $_light-action-strip: extend(
3131
igx-color: ('grays', 100)
3232
),
3333

34-
color: "'currentColor'",
34+
icon-color: "'currentColor'",
3535

3636
delete-action: (
3737
igx-color: ('error')
@@ -85,7 +85,7 @@ $_indigo-action-strip: extend(
8585
igx-color: ('primary')
8686
),
8787

88-
color: (
88+
icon-color: (
8989
igx-contrast-color: 'primary'
9090
),
9191
)

0 commit comments

Comments
 (0)