@@ -5,6 +5,7 @@ import { useTooltip } from 'components/TooltipProvider'
5
5
import useIsomorphicLayoutEffect from 'utils/use-isomorphic-layout-effect'
6
6
import { getScrollParent } from 'utils/get-scroll-parent'
7
7
import { computeTooltipPosition } from 'utils/compute-positions'
8
+ import coreStyles from './core-styles.module.css'
8
9
import styles from './styles.module.css'
9
10
import type { IPosition , ITooltip , PlacesType } from './TooltipTypes'
10
11
@@ -583,28 +584,34 @@ const Tooltip = ({
583
584
role = "tooltip"
584
585
className = { classNames (
585
586
'react-tooltip' ,
586
- styles [ 'tooltip' ] ,
587
+ coreStyles [ 'tooltip' ] ,
587
588
styles [ variant ] ,
588
589
className ,
589
590
`react-tooltip__place-${ actualPlacement } ` ,
590
591
{
591
- [ styles [ 'show' ] ] : canShow ,
592
- [ styles [ 'fixed' ] ] : positionStrategy === 'fixed' ,
593
- [ styles [ 'clickable' ] ] : clickable ,
592
+ [ coreStyles [ 'show' ] ] : canShow ,
593
+ [ coreStyles [ 'fixed' ] ] : positionStrategy === 'fixed' ,
594
+ [ coreStyles [ 'clickable' ] ] : clickable ,
594
595
} ,
595
596
) }
596
597
style = { { ...externalStyles , ...inlineStyles } }
597
598
ref = { tooltipRef }
598
599
>
599
600
{ content }
600
601
< WrapperElement
601
- className = { classNames ( 'react-tooltip-arrow' , styles [ 'arrow' ] , classNameArrow , {
602
- /**
603
- * changed from dash `no-arrow` to camelcase because of:
604
- * https://github.com/indooorsman/esbuild-css-modules-plugin/issues/42
605
- */
606
- [ styles [ 'noArrow' ] ] : noArrow ,
607
- } ) }
602
+ className = { classNames (
603
+ 'react-tooltip-arrow' ,
604
+ coreStyles [ 'arrow' ] ,
605
+ styles [ 'arrow' ] ,
606
+ classNameArrow ,
607
+ {
608
+ /**
609
+ * changed from dash `no-arrow` to camelcase because of:
610
+ * https://github.com/indooorsman/esbuild-css-modules-plugin/issues/42
611
+ */
612
+ [ coreStyles [ 'noArrow' ] ] : noArrow ,
613
+ } ,
614
+ ) }
608
615
style = { inlineArrowStyles }
609
616
ref = { tooltipArrowRef }
610
617
/>
0 commit comments