-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
feat(build): Upgrade @popperjs/*
to @floating-ui/react-*
#67
feat(build): Upgrade @popperjs/*
to @floating-ui/react-*
#67
Conversation
I still need to fix an issue where the tooltip arrow can obstruct content inside the tooltip itself. |
Ugh, it looks like the bug is still present, but only in Storybook, and only in Chromium browsers. Because the issue is isolated to Storybook, I'm more inclined it's a bug on their end. Will look into that more. |
f131716
to
352a125
Compare
@tulup-conner may I ask one 'related change'? Could you please change the decorator in this file: flowbite-react/.storybook/preview.js Line 3 in 0b6bb5f
It needs to be something like this: export const decorators = [
(Story) => (
<>
<Style />
<div className="flex h-screen justify-center items-center">
<div>
<Story />
</div>
</div>
</>
),
]; The ideia is to centralize all components to the screen, so it would looks nice to preview it, and also 'cause I was having some "issues" (I know that it isn't an issue) to preview the placement to the tooptip when it when out of frame. Otherwise it looks nice. |
These packages replaces `@popperjs/*`.
Replaces `@popperjs/*`. refactor(component): Re-enable `Tooltip` trigger either `click` or `hover` refactor(component): Re-enable `Tooltip` arrow refactor(component): Re-enable Tooltip auto placement refactor(component): Re-enable `Tooltip` transitions fix(component): Undo effect requiring arrow in `Tooltip` `Tooltip`s should be able to be created without using the arrow. fix(component): Overlap `Tooltip` arrow with text via `z-index` Prevents the text inside a `Tooltip` from being obscured by the `Tooltip` arrow. fix(component): Resolve `Tooltip` arrow placement when `placement` = `auto` Retrieves the actual placement calculated by `floating-ui` from the hook. This is crucial when the component is created with `auto` placement.
Inside `storybook`, `Tooltip`s were misaligned from the parent element on `Chromium` browsers.
`storybook` provides a `decorators` object to let us wrap components rendered in `storybook` with some HTML. This change wraps every component in a centered flex box which is a nicer UX than the top left. It also adds `MemoryRouter` which is required to merge themesberg#69.
86836a9
to
f7015e3
Compare
Floating UI is the next evolution of Popper.
We currently have a strange bug on Chromium causing
Dropdown
s/Tooltip
s to be misaligned with their target.This upgrade happens to resolve #57, as a bonus!Because
Tooltip
is used byDropdown
, both components have been upgraded.There are no breaking changes to the API.