Skip to content

Commit 1936bc2

Browse files
committed
add tooltip to data type icon in SelectableDataGrid for improved accessibility
1 parent efb7861 commit 1936bc2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/views/SelectableDataGrid.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,11 @@ export const SelectableDataGrid: React.FC<SelectableDataGridProps> = ({ rows, ta
395395
}}
396396
>
397397
<Box component="span" className="data-view-header-title">
398-
<IconButton size="small" sx={{ fontSize: "inherit", padding: "2px" }} component="span">
399-
{getIconFromType(columnDef.dataType)}
400-
</IconButton>
398+
<Tooltip title={`${columnDef.dataType} type`} >
399+
<span role="img" style={{ fontSize: "inherit", padding: "2px", display: "inline-flex", alignItems: "center" }}>
400+
{getIconFromType(columnDef.dataType)}
401+
</span>
402+
</Tooltip>
401403
<Typography className="data-view-header-name">{columnDef.label}</Typography>
402404
</Box>
403405
</TableSortLabel>

0 commit comments

Comments
 (0)