Skip to content

Commit cf29508

Browse files
committed
feat: Add tooltip for tab
1 parent ea16559 commit cf29508

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

app/components/chart-selection-tabs.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -936,14 +936,16 @@ const TabContent = (props: TabContentProps) => {
936936
</Button>
937937

938938
{label ? (
939-
<Button
940-
variant="text"
941-
color="primary"
942-
className={classes.label}
943-
onClick={onSwitchClick}
944-
>
945-
{label}
946-
</Button>
939+
<Tooltip title={label} enterDelay={750}>
940+
<Button
941+
variant="text"
942+
color="primary"
943+
className={classes.label}
944+
onClick={onSwitchClick}
945+
>
946+
{label}
947+
</Button>
948+
</Tooltip>
947949
) : null}
948950
{editable && (
949951
<Button

0 commit comments

Comments
 (0)