Skip to content

Commit

Permalink
Merge pull request #28250 from storybookjs/shilman/26595-fix-interact…
Browse files Browse the repository at this point in the history
…ions-deprecations

Addon-interactions: Fix deprecation warnings
(cherry picked from commit 9412e07)
  • Loading branch information
shilman authored and storybook-bot committed Jun 17, 2024
1 parent d27fff9 commit 8925626
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/addons/interactions/src/components/Interaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const Interaction = ({
hasChrome={false}
tooltip={<Note note={`${isCollapsed ? 'Show' : 'Hide'} interactions`} />}
>
<StyledIconButton containsIcon onClick={toggleCollapsed}>
<StyledIconButton onClick={toggleCollapsed}>
<ListUnorderedIcon />
</StyledIconButton>
</WithTooltip>
Expand Down
6 changes: 1 addition & 5 deletions code/addons/interactions/src/components/Subnav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export const Subnav: React.FC<SubnavProps> = ({
<WithTooltip trigger="hover" hasChrome={false} tooltip={<Note note="Go to start" />}>
<RewindButton
aria-label="Go to start"
containsIcon
onClick={controls.start}
disabled={!controlStates.start}
>
Expand All @@ -148,7 +147,6 @@ export const Subnav: React.FC<SubnavProps> = ({
<WithTooltip trigger="hover" hasChrome={false} tooltip={<Note note="Go back" />}>
<StyledIconButton
aria-label="Go back"
containsIcon
onClick={controls.back}
disabled={!controlStates.back}
>
Expand All @@ -159,7 +157,6 @@ export const Subnav: React.FC<SubnavProps> = ({
<WithTooltip trigger="hover" hasChrome={false} tooltip={<Note note="Go forward" />}>
<StyledIconButton
aria-label="Go forward"
containsIcon
onClick={controls.next}
disabled={!controlStates.next}
>
Expand All @@ -170,7 +167,6 @@ export const Subnav: React.FC<SubnavProps> = ({
<WithTooltip trigger="hover" hasChrome={false} tooltip={<Note note="Go to end" />}>
<StyledIconButton
aria-label="Go to end"
containsIcon
onClick={controls.end}
disabled={!controlStates.end}
>
Expand All @@ -179,7 +175,7 @@ export const Subnav: React.FC<SubnavProps> = ({
</WithTooltip>

<WithTooltip trigger="hover" hasChrome={false} tooltip={<Note note="Rerun" />}>
<RerunButton aria-label="Rerun" containsIcon onClick={controls.rerun}>
<RerunButton aria-label="Rerun" onClick={controls.rerun}>
<SyncIcon />
</RerunButton>
</WithTooltip>
Expand Down

0 comments on commit 8925626

Please sign in to comment.