Skip to content

Commit be19fd1

Browse files
sabinbaniyagabrieljablonski
authored andcommitted
docs: fixed some typos
1 parent 7ce5fc4 commit be19fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/docs/upgrade-guide/changelog-v4-v5.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If you are using V4 and want to use V5, please read this doc.
88

99
## From V4 to V5
1010

11-
V4 was a great react tooltip component but was built a few years ago, he was built with react class components and it's hard to maintain and to the community give contributions, so, with this in mind, we build a new version of react tooltip using [floating-ui](https://floating-ui.com/) behind the scenes. This gives a great improvement in performance and in a new and easier code to let the community contribute to the project.
11+
V4 was a great react tooltip component but was built a few years ago, it was built with react class components and it's hard to maintain and to the community give contributions, so, with this in mind, we built a new version of react tooltip using [floating-ui](https://floating-ui.com/) behind the scenes. This gives a great improvement in performance and a new and easier code to let the community contribute to the project.
1212

1313
## Improvements
1414

@@ -22,7 +22,7 @@ V4 was a great react tooltip component but was built a few years ago, he was bui
2222
- All data attributes are now prefixed with `data-tooltip-`
2323
- Default Padding changed from `padding: 8px 21px;` to `padding: 8px 16px;`
2424
- Exported module now is `Tooltip` instead of `ReactTooltip`
25-
- - If you already have a `Tooltip` component in your application and want to explicitly declare this is `ReactTooltip`, just `import { Tooltip as ReactTooltip } from "react-tooltip"`
25+
- If you already have a `Tooltip` component in your application and want to explicitly declare this as `ReactTooltip`, just `import { Tooltip as ReactTooltip } from "react-tooltip"`
2626
- CSS import is now optional, so you can modify and/or add any styling to your floating tooltip element
2727
- `data-tip` attribute now is `data-tooltip-content`
2828
- `getContent` prop was removed. Instead, you can directly pass dynamic content to the `content` tooltip prop, or to `data-tooltip-content` in the anchor element

0 commit comments

Comments
 (0)