diff --git a/packages/vue/src/components/MenuItem/LuiMenuItem.vue b/packages/vue/src/components/MenuItem/LuiMenuItem.vue index cbc655f..63c6910 100644 --- a/packages/vue/src/components/MenuItem/LuiMenuItem.vue +++ b/packages/vue/src/components/MenuItem/LuiMenuItem.vue @@ -47,6 +47,10 @@ const props = defineProps({ type: Boolean as PropType, default: false, }, + disableWrapper: { + type: Boolean as PropType, + default: false, + }, }) const slots = useSlots() const menuItemRef = ref() @@ -105,11 +109,14 @@ const computedAppendAndPrependClasses = computed(() => { return Object.values(appendAndPrependClasses) }) const computedDefaultSlotClasses = computed(() => { - const defaultSlotClasses: FlexGridInterface | LayoutInterface | TypographyInterface = { - display: 'flex flex-1', - alignItems: 'items-center', - textColor: 'text-inherit', - } + const defaultSlotClasses: + | FlexGridInterface + | LayoutInterface + | TypographyInterface = { + display: 'flex flex-1', + alignItems: 'items-center', + textColor: 'text-inherit', + } return Object.values(defaultSlotClasses) }) const focus = () => menuItemRef.value?.focus() @@ -120,7 +127,7 @@ defineExpose({ diff --git a/packages/vue/src/components/Tabs/LuiTabButton.vue b/packages/vue/src/components/Tabs/LuiTabButton.vue index c61dce7..3313d79 100644 --- a/packages/vue/src/components/Tabs/LuiTabButton.vue +++ b/packages/vue/src/components/Tabs/LuiTabButton.vue @@ -122,6 +122,7 @@ const buttonSlotProps = computed(() => ({ :tabindex="buttonSlotProps.tabindex" :aria-selected="buttonSlotProps.isSelected" :aria-controls="injection?.context.panels[injection.context.selectedIndex]?.id" + :disable-wrapper="true" :disabled="disabled" class="relative whitespace-nowrap cursor-pointer after:w-full after:h-0.5 after:absolute after:z-20 after:left-0 after:bottom-0 after:inline-block after:rounded-full" :class="[isSelected ? 'after:bg-primary-500' : 'after:bg-transparent']"