-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tooltip, DropdownMenu: replace popperjs with floating-ui #434
Conversation
🦋 Changeset detectedLatest commit: b7452d0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨
|
@Niznikr Thanks for the clue—I did notice that but I had hoped they wouldn't interplay. Maybe my understanding of hoisting is a bit poor 😅 I'm interested nonetheless in reproducing locally—will try from a totally fresh install and see what happens. |
* develop: Tabs: fix initial tab selection in more cases (#449) Storybook: add eslint-plugin-storybook and fix issues (#446) feat(storybook): install Measure and Outline addons (#445) Docs: update copy for Button's on-background usage (#444) Storybook: Convert stories to CSF 3 (#435) feat(tabs): fire event when tab selected programmatically (#442) ToggleButton: indicate toggle button state on underlying button elements (#438) Tooltip, DropdownMenu: replace popperjs with floating-ui (#434) Site: improve imports (#433)
* chore(tooltip, dropdown-menu): replace popperjs with floating-ui * chore: add debug logging to GitHub Actions * chore: remove debug logging from GitHub Actions * chore: add changeset * fix(ci): update set-output to environment files Closes ithaka#436 * chore(ci): update actions/cache from v2 to v3 * chore(ci): update actions/checkout and actions/setup-node from v2 to v3 * fix(styles): fix stylelint errors around specificity * fix(toggle-button): fix border width regression on hover * fix(toggle-button): fix style regression and story display * fix(tooltip, dropdown-menu): remove contain property * fix(storybook): fix poor prettier transform
This change: (check at least one)
Is this a breaking change? (check one)
Is the: (complete all)
What does this change address?
Resolves #266
Closes #436
How does this change work?
Replace usage and management of PopperJS with Floating UI, largely by following the documentation.
Additional context
'auto'
placements and fallbacks, opting instead to have a'bestFit'
option for fallback strategy which is now the default. This means we should deprecate the use of'auto'
for consumers moving forward. For now I've opted to have'auto'
get removed fromfallbackPlacements
if supplied, and to be switched to'top'
if supplied as the main placement.