Skip to content

Commit

Permalink
fix(tooltip): not able to render tooltip in docs page
Browse files Browse the repository at this point in the history
  • Loading branch information
igorwessel committed Nov 6, 2024
1 parent cadbb3a commit 319e613
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export default {
...TooltipStoryArgs,
} as Meta

export const Default: StoryObj = {
export const Hover: StoryObj = {
render: (args) => createTooltip(args, 'Hover'),
args: {
...TooltipComponentArgs,
element: 'elementId',
element: 'hover',
placement: 'top',
open: false,
},
Expand All @@ -46,7 +46,7 @@ export const Click: StoryObj = {
render: (args) => createTooltip(args, 'Click'),
args: {
...TooltipComponentArgs,
element: 'elementId',
element: 'click',
placement: 'top',
action: 'click',
open: false,
Expand All @@ -57,7 +57,7 @@ export const Opened: StoryObj = {
render: (args) => createTooltip(args, 'Opened'),
args: {
...TooltipComponentArgs,
element: 'elementId',
element: 'opened',
placement: 'left',
action: 'click',
open: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,19 @@ const createTooltip = (args, buttonText = 'Hover') => (
</>
)

export const Default: StoryObj = {
export const Hover: StoryObj = {
render: (args) => createTooltip(args),
args: {
...TooltipComponentArgs,
element: 'hover',
},
}

export const Click: StoryObj = {
render: (args) => createTooltip(args, 'Click'),
args: {
...TooltipComponentArgs,
element: 'elementId',
element: 'click',
placement: 'top',
action: 'click',
},
Expand All @@ -53,7 +54,7 @@ export const Opened: StoryObj = {
render: (args) => createTooltip(args, 'Opened'),
args: {
...TooltipComponentArgs,
element: 'elementId',
element: 'opened',
placement: 'left',
action: 'click',
open: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,19 @@ const createTooltip = (args, buttonText = 'Hover') => ({
`,
})

export const Default: StoryObj = {
export const Hover: StoryObj = {
render: (args) => createTooltip(args),
args: {
...TooltipComponentArgs,
element: 'hover',
},
}

export const Click: StoryObj = {
render: (args) => createTooltip(args, 'Click'),
args: {
...TooltipComponentArgs,
element: 'elementId',
element: 'click',
placement: 'top',
action: 'click',
},
Expand All @@ -56,7 +57,7 @@ export const Opened: StoryObj = {
render: (args) => createTooltip(args, 'Opened'),
args: {
...TooltipComponentArgs,
element: 'elementId',
element: 'opened',
placement: 'left',
action: 'click',
open: true,
Expand Down

0 comments on commit 319e613

Please sign in to comment.