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 {
12
12
} from 'components/Tooltip/TooltipTypes'
13
13
import { useTooltip } from 'components/TooltipProvider'
14
14
import { TooltipContent } from 'components/TooltipContent'
15
- import { cssAttrIsValid } from 'utils/css-attr-is-valid'
16
15
import type { ITooltipController } from './TooltipControllerTypes'
17
16
18
17
const TooltipController = ( {
@@ -245,11 +244,9 @@ const TooltipController = ({
245
244
// eslint-disable-next-line no-console
246
245
console . warn ( '[react-tooltip] Do not set `style.border`. Use `border` prop instead.' )
247
246
}
248
- if ( border && ! cssAttrIsValid ( 'border' , border ) ) {
247
+ if ( border && ! CSS . supports ( 'border' , ` ${ border } ` ) ) {
249
248
// 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\`.` )
253
250
}
254
251
} , [ ] )
255
252
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments