@@ -5,6 +5,7 @@ import { useTooltip } from 'components/TooltipProvider'
55import useIsomorphicLayoutEffect from 'utils/use-isomorphic-layout-effect'
66import { getScrollParent } from 'utils/get-scroll-parent'
77import { computeTooltipPosition } from 'utils/compute-positions'
8+ import coreStyles from './core-styles.module.css'
89import styles from './styles.module.css'
910import type { IPosition , ITooltip , PlacesType } from './TooltipTypes'
1011
@@ -583,28 +584,34 @@ const Tooltip = ({
583584 role = "tooltip"
584585 className = { classNames (
585586 'react-tooltip' ,
586- styles [ 'tooltip' ] ,
587+ coreStyles [ 'tooltip' ] ,
587588 styles [ variant ] ,
588589 className ,
589590 `react-tooltip__place-${ actualPlacement } ` ,
590591 {
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 ,
594595 } ,
595596 ) }
596597 style = { { ...externalStyles , ...inlineStyles } }
597598 ref = { tooltipRef }
598599 >
599600 { content }
600601 < 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+ ) }
608615 style = { inlineArrowStyles }
609616 ref = { tooltipArrowRef }
610617 />
0 commit comments