Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/heavy-pots-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@digdir/designsystemet-web": patch
---

**Popover, Dropdown, Tooltip, Suggestion**: Correct the fallback offset floating value to 8px when no arrow is present
2 changes: 1 addition & 1 deletion packages/web/src/popover/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function handleToggle(
strategy: 'absolute',
placement,
middleware: [
offset(arrowSize || 0), // Add space for arrow or default to 8px
offset(arrowSize || 8), // Add space for arrow or default to 8px
shift({
padding,
limiter: limitShift({ offset: { mainAxis: shiftLimit } }), // Prevent from shifing away from source
Expand Down