Skip to content

Commit c895a30

Browse files
fix(card): consume card actions color (#1871)
Co-authored-by: Simeon Simeonoff <[email protected]>
1 parent a9ac451 commit c895a30

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/components/card/card.actions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { registerComponent } from '../common/definitions/register.js';
66
import type { ContentOrientation } from '../types.js';
77
import { all } from './themes/actions.js';
88
import { styles } from './themes/card.actions.base.css.js';
9+
import { styles as shared } from './themes/shared/actions/card.actions.common.css.js';
910

1011
/** A container for card action items like buttons
1112
* @element igc-card-actions
@@ -16,7 +17,7 @@ import { styles } from './themes/card.actions.base.css.js';
1617
*/
1718
export default class IgcCardActionsComponent extends LitElement {
1819
public static readonly tagName = 'igc-card-actions';
19-
public static override styles = styles;
20+
public static override styles = [styles, shared];
2021

2122
/* blazorSuppress */
2223
public static register(): void {

src/components/card/themes/card.actions.base.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,3 @@
3737
margin-inline-start: auto;
3838
order: 1;
3939
}
40-
41-
::slotted(igc-icon) {
42-
opacity: .6;
43-
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@use 'styles/utilities' as *;
2+
@use '../../light/themes' as *;
3+
4+
$theme: $base;
5+
6+
:host {
7+
color: var-get($theme, 'actions-text-color');
8+
}

0 commit comments

Comments
 (0)