Skip to content

Commit bfd9e8e

Browse files
committed
fix: accept union theme at box action
1 parent 09bf62a commit bfd9e8e

File tree

1 file changed

+10
-4
lines changed
  • packages/components-vue/src/components/box

1 file changed

+10
-4
lines changed

packages/components-vue/src/components/box/Action.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@
22
<BaseBox
33
:el="BaseAction"
44
v-bind="{ ...$attrs, ...props, ...tooltipAttributes }"
5+
:invert-theme="false"
56
:aria-label="label"
67
button
78
>
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+
>
917
<IconFa v-if="icon" v-bind="{ size: 35, ...iconProps, name: icon }" />
1018
<BaseImg
1119
v-else-if="src"
@@ -26,7 +34,6 @@
2634
import type { IconName } from "@fortawesome/fontawesome-common-types";
2735
2836
import type { iFormIconProps } from "@open-xamu-co/ui-common-types";
29-
import { eColors } from "@open-xamu-co/ui-common-enums";
3037
3138
import BaseBox from "../base/Box.vue";
3239
import BaseImg from "../base/Img.vue";
@@ -82,6 +89,5 @@
8289
8390
const props = defineProps<iBoxActionProps>();
8491
85-
const { tooltipAttributes } = useTheme(props);
86-
const { themeClasses: innerThemeClasses } = useTheme({ theme: eColors.LIGHT });
92+
const { tooltipAttributes, themeValues } = useTheme(props, true);
8793
</script>

0 commit comments

Comments
 (0)