Skip to content

Commit

Permalink
fix: make table toolbar tooltips disappear when button hovering stops
Browse files Browse the repository at this point in the history
  • Loading branch information
csm-thu committed Oct 23, 2023
1 parent 233f5b1 commit 6760c6c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Expand Up @@ -12,7 +12,7 @@ export const AddRowButton = (props) => {
const spanProps = { style: { display: 'inline-block', height: '100%' } };

return (
<FadingTooltip title={label} useSpan={true} spanProps={spanProps}>
<FadingTooltip title={label} useSpan={true} spanProps={spanProps} disableInteractive={true}>
<IconButton
onClick={onAddRow}
component="label"
Expand Down
Expand Up @@ -13,7 +13,7 @@ export const DeleteRowButton = (props) => {

return (
<>
<FadingTooltip title={labels} useSpan={true} spanProps={spanProps}>
<FadingTooltip title={labels} useSpan={true} spanProps={spanProps} disableInteractive={true}>
<IconButton
onClick={onDeleteRow}
component="label"
Expand Down
Expand Up @@ -12,7 +12,7 @@ export const ExportButton = (props) => {
const spanProps = { style: { display: 'inline-block', height: '100%' } };

return (
<FadingTooltip title={label} useSpan={true} spanProps={spanProps}>
<FadingTooltip title={label} useSpan={true} spanProps={spanProps} disableInteractive={true}>
<IconButton onClick={onExport} size="small" color="primary" data-cy="export-button" disabled={disabled}>
<DownloadIcon fontSize="inherit" />
</IconButton>
Expand Down
Expand Up @@ -13,7 +13,7 @@ export const FullscreenButton = (props) => {
const spanProps = { style: { display: 'inline-block', height: '100%' } };

return (
<FadingTooltip title={label} useSpan={true} spanProps={spanProps}>
<FadingTooltip title={label} useSpan={true} spanProps={spanProps} disableInteractive={true}>
<IconButton
onClick={toggleFullscreen}
size="small"
Expand Down
Expand Up @@ -12,7 +12,7 @@ export const ImportButton = (props) => {
const spanProps = { style: { display: 'inline-block', height: '100%' } };

return (
<FadingTooltip title={label} useSpan={true} spanProps={spanProps}>
<FadingTooltip title={label} useSpan={true} spanProps={spanProps} disableInteractive={true}>
<IconButton
variant="text"
component="label"
Expand Down

0 comments on commit 6760c6c

Please sign in to comment.