You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`REACT_TOOLTIP_DISABLE_CORE_STYLES`|`boolean`| no |`false`|`true``false`| Environment variable to disable **core** styles from being injected into the page by ReactTooltip.<br /><br /> We strongly recommend to keep the core styles being injected into the project unless you know what you are doing. |
491
-
|`REACT_TOOLTIP_DISABLE_BASE_STYLES`|`boolean`| no |`false`|`true``false`| Environment variable to disable **base** styles from being injected into the page by ReactTooltip.<br /><br /> Those styles are just visual styles like colors, padding, etc... And can be disabled if you want to write your tooltip styles. |
484
+
The `REACT_TOOLTIP_DISABLE_CORE_STYLES` and `REACT_TOOLTIP_DISABLE_BASE_STYLES` environment variables are no longer supported.
492
485
486
+
:::
493
487
494
488
#### `removeStyle()` function
495
489
496
490
:::danger
497
491
498
-
This has been deprecated. Use [`disableStyleInjection`](#disabling-reacttooltip-css) instead.
499
-
500
-
:::
492
+
Removed in v6. Use [`disableStyleInjection`](#disabling-reacttooltip-css) instead.
501
493
502
-
You can also use the `removeStyle()` function to remove injected styles from the page. It accepts the following parameters:
494
+
The `removeStyle()` function is no longer exported.
503
495
504
-
| name | type | required | default | values | description |
| type | string | no |`base`|`base``core`| If `core` is defined, the core styles will be removed from the page, if nothing is defined, `base` styles will be removed as default value |
507
-
508
-
```jsx
509
-
import { removeStyle } from'react-tooltip'
510
-
511
-
removeStyle() // removes the injected base style of ReactTooltip
512
-
removeStyle({ type:'core' }) // removes the injected core style of ReactTooltip - this can affect the basic functionality of ReactTooltip
0 commit comments