File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/compass-components/src Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ import LeafyGreenTextInput from '@leafygreen-ui/text-input';
7373import { SearchInput } from '@leafygreen-ui/search-input' ;
7474export { usePrevious , useMergeRefs } from '@leafygreen-ui/hooks' ;
7575import Toggle from '@leafygreen-ui/toggle' ;
76- import Tooltip from '@leafygreen-ui/tooltip' ;
76+ import LGTooltip from '@leafygreen-ui/tooltip' ;
7777import {
7878 H1 ,
7979 H2 ,
@@ -92,8 +92,10 @@ import {
9292 ComboboxOption ,
9393 ComboboxGroup ,
9494} from '@leafygreen-ui/combobox' ;
95+ import { withStackedComponentStyles } from '../hooks/use-stacked-component' ;
9596
9697// 2. Wrap and make any changes/workaround to leafygreen components.
98+ const Tooltip = withStackedComponentStyles ( LGTooltip ) ;
9799const Icon = ( {
98100 size,
99101 ...rest
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ type StackedComponentProps<T extends boolean> = T extends true
3232
3333// TODO(LG-4109): This should be eventually supported by the LG design system
3434export const withStackedComponentStyles = function < ComponentProps > (
35- WrappedComponent : ComponentType < ComponentProps >
36- ) : ComponentType < ComponentProps > {
35+ WrappedComponent : React . FC < ComponentProps >
36+ ) : React . FC < ComponentProps > {
3737 const ComponentWithStackedStyles = (
3838 props : ComponentProps ,
3939 ref : ForwardedRef < ComponentType < ComponentProps > >
You can’t perform that action at this time.
0 commit comments