diff --git a/packages/ui/src/popover/stories/index.story.tsx b/packages/ui/src/popover/stories/index.story.tsx index 7da4df37f9762f..b0056aa10ab83b 100644 --- a/packages/ui/src/popover/stories/index.story.tsx +++ b/packages/ui/src/popover/stories/index.story.tsx @@ -5,6 +5,7 @@ import * as Popover from '../'; import { VisuallyHidden } from '../../visually-hidden'; import { Icon } from '../../icon'; import { IconButton } from '../../icon-button'; +import { Link } from '../../link'; import { GenericIframe, useMeasure } from './utils'; const meta: Meta< typeof Popover.Root > = { @@ -1228,8 +1229,9 @@ export const HoverTrigger: Story = { /** * Popups that open when hovering an info icon should use Popover with the - * `openOnHover` prop on the trigger instead of a tooltip. This way, touch - * users and screen reader users can access the content. + * `openOnHover` prop on the trigger instead of a + * [tooltip](https://wordpress.github.io/gutenberg/?path=/docs/design-system-components-tooltip--docs). + * This way, touch users and screen reader users can access the content. * * To know when to reach for a popover instead of a tooltip, consider the * purpose of the trigger element: If the trigger's purpose is to open the @@ -1282,3 +1284,60 @@ export const Infotip: Story = { ); }, }; + +/** + * An infotip popup can contain interactive content, such as a `Link`. The + * popup stays open while the pointer moves from the trigger onto the popup + * itself, so the link stays reachable — satisfying the "hoverable" + * requirement of + * [WCAG 1.4.13 Content on Hover or Focus](https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html). + * The link is also reachable by tabbing to it, since the trigger opens on + * focus as well as hover. + */ +export const InfotipWithLink: Story = { + parameters: { controls: { disable: true } }, + render: function Render( args ) { + return ( +