Skip to content

Commit

Permalink
Docs(TooltipV2): dialog trigger story: accessibility improvements (#5090
Browse files Browse the repository at this point in the history
)

* Docs(TooltipV2): dialog trigger story: accessibility improvements

* Docs(TooptipV2): change aria label
  • Loading branch information
francinelucca authored Oct 16, 2024
1 parent f93eb9b commit f38d99d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/TooltipV2/Tooltip.examples.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const DialogTrigger = () => {
return (
<>
<Tooltip text="Ready to merge">
<IconButton ref={buttonRef} onClick={() => setIsOpen(!isOpen)} icon={CheckIcon} aria-label="Check mark" />
<IconButton ref={buttonRef} onClick={() => setIsOpen(!isOpen)} icon={CheckIcon} aria-label="Merge" />
</Tooltip>
{isOpen && (
<Dialog
Expand All @@ -170,7 +170,7 @@ export const DialogTrigger = () => {
footerButtons={[
{buttonType: 'default', content: 'Open Second Dialog', onClick: openSecondDialog},
{buttonType: 'danger', content: 'Delete the universe', onClick: onDialogClose},
{buttonType: 'primary', content: 'Proceed', onClick: openSecondDialog, autoFocus: true},
{buttonType: 'primary', content: 'Proceed', onClick: openSecondDialog},
]}
>
The icon button that triggers the dialog, takes the focus back when the dialog is closed however the the
Expand Down

0 comments on commit f38d99d

Please sign in to comment.