Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Fix inline popover content taking up space (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend authored Feb 15, 2022
1 parent a98e709 commit 03ed3bd
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/components/VPopover/VPopoverContent.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
<template>
<div
v-if="visible"
ref="popoverRef"
:class="[$style.popover, { [`z-[${zIndex}]`]: zIndex !== undefined }]"
class="w-0"
:aria-hidden="!visible"
:tabindex="typeof $props.tabindex !== 'undefined' ? $props.tabindex : -1"
v-on="$listeners"
@keydown="onKeyDown"
@blur="onBlur"
>
<slot />
<div
ref="popoverRef"
class="bg-white border border-light-gray rounded-sm shadow max-w-max"
:class="{ [`z-[${zIndex}]`]: zIndex !== undefined }"
:tabindex="-1"
@blur="onBlur"
>
<slot />
</div>
</div>
</template>

Expand Down Expand Up @@ -56,9 +61,3 @@ export default defineComponent({
},
})
</script>

<style module>
.popover {
@apply bg-white border border-light-gray rounded-sm max-w-max shadow;
}
</style>

0 comments on commit 03ed3bd

Please sign in to comment.