diff --git a/packages/eds-core-react/src/components/Popover/Popover.docs.mdx b/packages/eds-core-react/src/components/Popover/Popover.docs.mdx index 0e7aa15958..27406be1ad 100644 --- a/packages/eds-core-react/src/components/Popover/Popover.docs.mdx +++ b/packages/eds-core-react/src/components/Popover/Popover.docs.mdx @@ -111,10 +111,6 @@ It is recommended to use trapFocus in every Popover which contains -### With Tooltip - - - ### With close button In some cases an explicit close button is recommended. diff --git a/packages/eds-core-react/src/components/Popover/Popover.stories.tsx b/packages/eds-core-react/src/components/Popover/Popover.stories.tsx index 12a544ba30..24ac140948 100644 --- a/packages/eds-core-react/src/components/Popover/Popover.stories.tsx +++ b/packages/eds-core-react/src/components/Popover/Popover.stories.tsx @@ -8,7 +8,6 @@ import { Popover, PopoverProps, Icon, - Tooltip, EdsProvider, Density, } from '../..' @@ -20,7 +19,6 @@ import { email, home, instrument, - more_vertical, pipe_support, platform, settings, @@ -86,19 +84,16 @@ export const Introduction: Story = (args) => { <> @@ -114,7 +109,7 @@ export const Introduction: Story = (args) => { - Content + Popover content @@ -140,8 +135,8 @@ export const ActivateOnClick: Story = () => { return ( <> = () => { Title - Content + Popover content @@ -191,8 +184,7 @@ export const ActivateOnHover: Story = () => { return ( <> = () => { Title - Content + Popover content @@ -222,37 +213,6 @@ export const ActivateOnHover: Story = () => { } ActivateOnHover.storyName = 'Activate onHover' -export const WithTooltip: Story = () => { - const [isOpen, setIsOpen] = useState(false) - const anchorRef = useRef(null) - - const openPopover = () => setIsOpen(true) - const closePopover = () => setIsOpen(false) - - return ( - <> - - - - - - Title - - - Content - - - - ) -} - export const WithCloseButton: Story = () => { const [isOpen, setIsOpen] = useState(false) const anchorRef = useRef(null) @@ -263,22 +223,21 @@ export const WithCloseButton: Story = () => { return ( <> Title @@ -292,7 +251,7 @@ export const WithCloseButton: Story = () => { - Content + Popover content @@ -324,16 +283,15 @@ export const PersistentPopover: Story = () => { return ( <> = () => { return ( = () => { Title - Content + Popover content @@ -432,11 +388,16 @@ export const AppLauncher: Story = () => { return ( <> - - - +