Skip to content

Commit

Permalink
Merge pull request #39 from buildo/tooltip-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro authored Feb 24, 2022
2 parents 7e0bf74 + a92517e commit fa3803d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@
],
"license": "MIT",
"homepage": "https://github.com/buildo/bento-design-system#readme",
"dependenciesComments": {
"@farzadsh/floating-ui-*": "NOTE(gabro): we are using a fork of Floating UI due to an issue with the build of the published package. See https://github.com/floating-ui/floating-ui/pull/1529"
},
"dependencies": {
"@dessert-box/react": "^0.2.0",
"@floating-ui/react-dom": "^0.4.3",
"@farzadsh/floating-ui-core": "^0.4.1",
"@farzadsh/floating-ui-dom": "^0.2.1",
"@farzadsh/floating-ui-react-dom": "^0.4.4",
"@react-aria/breadcrumbs": "^3.1.5",
"@react-aria/button": "^3.3.4",
"@react-aria/checkbox": "^3.2.3",
Expand Down
25 changes: 15 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentProps, HTMLAttributes, Ref, useRef } from "react";
import { Label, TextChildren } from "..";
import { BentoSprinkles, Box, Inset } from "../internal";
import { useFloating, shift, autoPlacement, offset, arrow } from "@floating-ui/react-dom";
import { useFloating, shift, autoPlacement, offset, arrow } from "@farzadsh/floating-ui-react-dom";
import { useTooltipTriggerState } from "@react-stately/tooltip";
import { useTooltipTrigger, useTooltip } from "@react-aria/tooltip";
import { tooltip, arrow as arrowStyle } from "./Tooltip.css";
Expand Down

0 comments on commit fa3803d

Please sign in to comment.