Skip to content

Commit

Permalink
chore: use button instead of span since element is interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Jan 14, 2025
1 parent 5812fc5 commit e737240
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/pages/edit/ItemSelector/ContentMenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ const LaunchLink = ({ url }) => {
}, [url])

return (
<span
<button
onClick={handleClick}
className={classes.launchLink}
className={classes.launchLinkButton}
aria-label={i18n.t('Open visualization in new tab')}
>
<IconLaunch16 color={colors.grey700} />
</span>
</button>
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
justify-content: space-between;
}

.launchLink {
.launchLinkButton {
display: flex;
margin-inline-start: 8px;
z-index: 10000;
border: none;
background-color: transparent;
padding: 0;
}

.label {
Expand Down

0 comments on commit e737240

Please sign in to comment.