fix(Popover): correct fallback offset value to 8px when no arrow#4931
fix(Popover): correct fallback offset value to 8px when no arrow#4931olros wants to merge 2 commits into
Conversation
🦋 Changeset detectedLatest commit: 5874af6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
| "@digdir/designsystemet-web": patch | ||
| --- | ||
|
|
||
| **Popover**: Correct the fallback offset floating value to 8px when no arrow is present |
There was a problem hiding this comment.
This should affect all floating elements using popover.ts I think, not sure if you want the changeset to specify all of them?
|
Thanks for PR @olros 🤗 and good point! 🌟 |
Thanks for the PR @olros! I have made a separate issue for work on the suggested improvements from @eirikbacker. We have a long list of features we are currently working on, and going into summer we are unsure when we'll get to have a look at this. I've made an issue for it so anyone can have a go at it when there is time :) |
95dfabd to
5874af6
Compare
Summary
If the popover/tooltip/some other element depending on
popover.tsis created with custom styles not using a::beforepseudo-element, the shift-param currently ends up being 0, even though the comment at the same line implies that it should default to8px. This fixes that.Checks
pnpm changesetif relevant)