Skip to content

Commit 8b2a15d

Browse files
committed
docs: update styling docs
1 parent 7a5bcd3 commit 8b2a15d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

react-tooltip-docs/docs/examples/styling.mdx

+8
Original file line numberDiff line numberDiff line change
@@ -378,3 +378,11 @@ import 'react-tooltip/dist/react-tooltip.css'
378378
</TooltipAnchor>
379379
<Tooltip anchorId="custom-styles-padding" className="example-padding" />
380380
</div>
381+
382+
#### Observation
383+
384+
This doc is only if you are importing `import 'react-tooltip/dist/react-tooltip.css'`, if not, you can write your classes by you directly.
385+
386+
With CSS specificity everything can be overridden if you know what are you doing.
387+
388+
The necessity of `!import` was removed because `!import` cut a lot of levels/possibilities related to CSS specificity.

0 commit comments

Comments
 (0)