Skip to content

Commit

Permalink
feat: Add tooltip for tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Jun 11, 2024
1 parent 169b5ad commit 1a6fb84
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/components/chart-selection-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -936,14 +936,16 @@ const TabContent = (props: TabContentProps) => {
</Button>

{label ? (
<Button
variant="text"
color="primary"
className={classes.label}
onClick={onSwitchClick}
>
{label}
</Button>
<Tooltip title={label} enterDelay={750}>
<Button
variant="text"
color="primary"
className={classes.label}
onClick={onSwitchClick}
>
{label}
</Button>
</Tooltip>
) : null}
{editable && (
<Button
Expand Down

0 comments on commit 1a6fb84

Please sign in to comment.