File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
packages/components-vue/src/components/box Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 2
2
<BaseBox
3
3
:el =" BaseAction"
4
4
v-bind =" { ...$attrs, ...props, ...tooltipAttributes }"
5
+ :invert-theme =" false"
5
6
:aria-label =" label"
6
7
button
7
8
>
8
- <BaseBox v-if =" icon || src" :class =" innerThemeClasses" square opaque >
9
+ <BaseBox
10
+ v-if =" icon || src"
11
+ :theme =" themeValues"
12
+ :invert-theme =" invertTheme"
13
+ square
14
+ opaque
15
+ with-color
16
+ >
9
17
<IconFa v-if =" icon" v-bind =" { size: 35, ...iconProps, name: icon }" />
10
18
<BaseImg
11
19
v-else-if =" src"
26
34
import type { IconName } from " @fortawesome/fontawesome-common-types" ;
27
35
28
36
import type { iFormIconProps } from " @open-xamu-co/ui-common-types" ;
29
- import { eColors } from " @open-xamu-co/ui-common-enums" ;
30
37
31
38
import BaseBox from " ../base/Box.vue" ;
32
39
import BaseImg from " ../base/Img.vue" ;
82
89
83
90
const props = defineProps <iBoxActionProps >();
84
91
85
- const { tooltipAttributes } = useTheme (props );
86
- const { themeClasses : innerThemeClasses } = useTheme ({ theme: eColors .LIGHT });
92
+ const { tooltipAttributes, themeValues } = useTheme (props , true );
87
93
</script >
You can’t perform that action at this time.
0 commit comments