Skip to content

Commit 481858f

Browse files
committed
Remove obsolete icon heading color prop
1 parent 73abb58 commit 481858f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Tekst-Web/src/components/generic/IconHeading.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ withDefaults(
88
level: '1' | '2' | '3' | '4' | '5' | '6';
99
icon?: Component;
1010
iconSize?: string;
11-
iconColor?: 'text' | 'accent';
1211
ellipsis?: boolean;
1312
style?: string | CSSProperties;
1413
}>(),
1514
{
1615
icon: undefined,
1716
iconSize: '1em',
18-
iconColor: 'accent',
1917
style: undefined,
2018
}
2119
);
@@ -25,12 +23,7 @@ const theme = useThemeStore();
2523

2624
<template>
2725
<component :is="`h${level}`" class="icon-heading" :style="style">
28-
<n-icon
29-
v-if="icon"
30-
:component="icon"
31-
:size="iconSize"
32-
:color="iconColor === 'accent' ? theme.custom.accent.base : 'inherit'"
33-
/>
26+
<n-icon v-if="icon" :component="icon" :size="iconSize" :color="theme.custom.accent.base" />
3427
<n-ellipsis v-if="ellipsis">
3528
<slot></slot>
3629
</n-ellipsis>

0 commit comments

Comments
 (0)