Skip to content

Commit

Permalink
Remove 'Story' from Tooltip story names
Browse files Browse the repository at this point in the history
  • Loading branch information
frankieyan committed Oct 26, 2024
1 parent c9c7406 commit c78bf42
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/tooltip/tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ function StoryTemplate(props: Omit<TooltipProps, 'children'>) {
}

//
// Playground story
// Playground
//

export function TooltipPlaygroundStory(args: Omit<TooltipProps, 'children'>) {
export function TooltipPlayground(args: Omit<TooltipProps, 'children'>) {
return <StoryTemplate {...args} />
}

TooltipPlaygroundStory.args = {
TooltipPlayground.args = {
content: 'You did it!',
position: 'top',
gapSize: 5,
Expand All @@ -82,17 +82,17 @@ TooltipPlaygroundStory.args = {
hideTimeout: 100,
}

TooltipPlaygroundStory.argTypes = {
TooltipPlayground.argTypes = {
position: {
control: { type: 'select', options: positions },
},
}

//
// Rich content story
// Rich content
//

export function TooltipRichContentStory({
export function TooltipRichContent({
position,
gapSize,
withArrow,
Expand Down Expand Up @@ -124,15 +124,15 @@ export function TooltipRichContentStory({
)
}

TooltipRichContentStory.args = {
TooltipRichContent.args = {
position: 'bottom',
gapSize: 10,
withArrow: true,
showTimeout: 500,
hideTimeout: 100,
}

TooltipRichContentStory.argTypes = {
TooltipRichContent.argTypes = {
position: {
control: { type: 'select', options: positions },
},
Expand All @@ -141,7 +141,7 @@ TooltipRichContentStory.argTypes = {
// This story sets a new z-index for the tooltip, but it will leak into other stories
// when viewed from the Docs page, since all stories live in a single iframe.
// Only in the Canvas page will stories be isolated from each other
export function TooltipCustomZIndexStory() {
export function TooltipCustomZIndex() {
return (
<>
<PortalToHead>
Expand Down

0 comments on commit c78bf42

Please sign in to comment.