-
-
Notifications
You must be signed in to change notification settings - Fork 359
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationfeature requestRequest a feature or introduce and update to the project.Request a feature or introduce and update to the project.
Milestone
Description
Current Behavior
Extra bottom spacing appears around popover triggers in table cells, creating layout gaps.

Expected Behavior
Popover triggers in table cells should not add extra spacing beyond the intended content.
Link to Reproduction / Stackblitz
https://stackblitz.com/edit/sveltejs-kit-template-default-kxurdzqk?file=src%2Flib%2FDataTable.svelte
Environment Information
- @skeletonlabs/skeleton: ^3.1.3
- @skeletonlabs/skeleton-svelte: ^1.2.1
- SvelteKit: ^2.16.0
- Tailwind CSS: ^4.0.0
More Information
Root Cause:
The <span data-testid="popover">
wrapper and <button>
trigger elements retain default spacing behavior that add unwanted padding/space.
Minimal Reproduction
<table class="table">
<tr>
<td>
<Popover>
{#snippet trigger()}
<img src="image.jpg" class="w-16 h-16" />
{/snippet}
{#snippet content()}
<div>Popover content</div>
{/snippet}
</Popover>
</td>
</tr>
</table>
Current Workaround:
.table span[data-testid='popover'] {
display: block;
line-height: 0;
}
.table button[data-part='trigger'] {
padding: 0;
margin: 0;
border: none;
background: transparent;
line-height: 0;
display: block;
}
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationfeature requestRequest a feature or introduce and update to the project.Request a feature or introduce and update to the project.