File tree Expand file tree Collapse file tree 2 files changed +2
-30
lines changed
components/TooltipController Expand file tree Collapse file tree 2 files changed +2
-30
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import type {
1212} from 'components/Tooltip/TooltipTypes'
1313import { useTooltip } from 'components/TooltipProvider'
1414import { TooltipContent } from 'components/TooltipContent'
15- import { cssAttrIsValid } from 'utils/css-attr-is-valid'
1615import type { ITooltipController } from './TooltipControllerTypes'
1716
1817const TooltipController = ( {
@@ -245,11 +244,9 @@ const TooltipController = ({
245244 // eslint-disable-next-line no-console
246245 console . warn ( '[react-tooltip] Do not set `style.border`. Use `border` prop instead.' )
247246 }
248- if ( border && ! cssAttrIsValid ( 'border' , border ) ) {
247+ if ( border && ! CSS . supports ( 'border' , ` ${ border } ` ) ) {
249248 // eslint-disable-next-line no-console
250- console . warn (
251- `[react-tooltip] "${ border } " is not a valid \`border\`. See https://developer.mozilla.org/en-US/docs/Web/CSS/border` ,
252- )
249+ console . warn ( `[react-tooltip] "${ border } " is not a valid \`border\`.` )
253250 }
254251 } , [ ] )
255252
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments