An open source design system that's fully customizable and agent ready
TypeScript
chore(storybook): the InfoTip clickable-card story puts the info button beside its text (#9880)
Cindy Zhanged337273ed66
diff --git a/apps/storybook/stories/TooltipToggleBehaviorA11y.stories.tsx b/apps/storybook/stories/TooltipToggleBehaviorA11y.stories.tsxindex 9f578971a6..f850c6dbba 100644--- a/apps/storybook/stories/TooltipToggleBehaviorA11y.stories.tsx+++ b/apps/storybook/stories/TooltipToggleBehaviorA11y.stories.tsx@@ -21,7 +21,7 @@ import {useState} from 'react';import type {Meta, StoryObj} from '@storybook/react';import {ClickableCard} from '@astryxdesign/core/ClickableCard';import {InfoTip} from '@astryxdesign/core/InfoTip';-import {VStack} from '@astryxdesign/core/Layout';+import {HStack, VStack} from '@astryxdesign/core/Layout';import {Tooltip} from '@astryxdesign/core/Tooltip';const meta: Meta = {@@ -60,10 +60,10 @@ function InAClickableCardRender() {<div style={{padding: 100, maxWidth: 360}}><VStack gap={2}><ClickableCard label="Icon usage" onClick={() => setOpened(n => n + 1)}>- <VStack gap={2}>+ <HStack gap={1} vAlign="center">Icon usage<InfoTip content={HELP} label="What is this?" />- </VStack>+ </HStack></ClickableCard><span>Card opened {opened} times</span></VStack>