Skip to content

Commit 4ea799a

Browse files
gabrieljablonskiGabriel Jablonski
authored and
Gabriel Jablonski
committed
docs: importing the css file is required
1 parent f671122 commit 4ea799a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ You can import `node_modules/react-tooltip/dist/react-tooltip.[mode].js` into yo
8787

8888
mode: `esm` `cjs` `umd`
8989

90-
If you want to use default ReactTooltip styles, don't forget to import the styles: `node_modules/react-tooltip/dist/react-tooltip.css`
90+
Don't forget to import the CSS file from `node_modules/react-tooltip/dist/react-tooltip.css` to set default styling. This needs to be done only once in your application.
9191

92-
PS: all the files has a minified version and a not minified version.
92+
PS: all the files have a minified version and a non-minified version.
9393

9494
![image](https://user-images.githubusercontent.com/9615850/205637814-c0ef01ae-bd77-4e7f-b4bf-df502c71e5c3.png)
9595

docs/docs/examples/styling.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,6 @@ import 'react-tooltip/dist/react-tooltip.css'
365365

366366
#### Observation
367367

368-
This doc is only if you are importing `import 'react-tooltip/dist/react-tooltip.css'`. If not, you can write your own CSS classes directly.
369-
370368
With CSS specificity everything can be overridden if you know what are you doing.
371369

372370
The necessity of `!important` was removed because `!important` cut a lot of levels/possibilities related to CSS specificity.

0 commit comments

Comments
 (0)