fix: Allow icon styles to be overridden (#1794)

This commit is contained in:
Dermot Duffy
2024-12-23 21:24:28 -08:00
committed by GitHub
parent bc95f55cb0
commit f7ecb91578
4 changed files with 21 additions and 5 deletions
+4
View File
@@ -5,6 +5,7 @@ import {
LovelaceCardEditor,
Themes,
} from '@dermotduffy/custom-card-helpers';
import { StyleInfo } from 'lit/directives/style-map';
import { z } from 'zod';
export type ClipsOrSnapshots = 'clips' | 'snapshots';
@@ -145,6 +146,9 @@ export interface Icon {
// If an icon is not otherwise resolved / available, this will be used instead.
fallback?: string;
// Styling to apply to the icon.
style?: StyleInfo;
}
// *************************************************************************