diff --git a/site/source/design-system/popover/PopoverWithTrigger.tsx b/site/source/design-system/popover/PopoverWithTrigger.tsx index 5ba186c81..0f5398019 100644 --- a/site/source/design-system/popover/PopoverWithTrigger.tsx +++ b/site/source/design-system/popover/PopoverWithTrigger.tsx @@ -4,6 +4,7 @@ import { AriaButtonProps } from '@react-types/button' import React, { ReactElement, Ref, RefObject, useEffect, useRef } from 'react' import { useLocation } from 'react-router-dom' +import { ForceThemeProvider } from '@/contexts/DarkModeContext' import { Button } from '@/design-system/buttons' import { omit } from '@/utils' @@ -60,23 +61,25 @@ export default function PopoverWithTrigger({ <> {triggerButton} {state.isOpen && ( - { - state.close() - }} - isDismissable - role="dialog" - small={small} - contentRef={contentRef} - > - {typeof children === 'function' - ? children(() => { - state.close() - }) - : children} - + + { + state.close() + }} + isDismissable + role="dialog" + small={small} + contentRef={contentRef} + > + {typeof children === 'function' + ? children(() => { + state.close() + }) + : children} + + )} )