mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
Explore: A tooltip for reorder icon in query operation (#75978)
* tooltip in draggabledots icon * making it a IconButton
This commit is contained in:
parent
81b366e2c8
commit
76e102d1a3
@ -4,7 +4,7 @@ import { DraggableProvided } from 'react-beautiful-dnd';
|
||||
|
||||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
import { Stack } from '@grafana/experimental';
|
||||
import { Icon, IconButton, useStyles2 } from '@grafana/ui';
|
||||
import { IconButton, useStyles2 } from '@grafana/ui';
|
||||
|
||||
export interface QueryOperationRowHeaderProps {
|
||||
actionsElement?: React.ReactNode;
|
||||
@ -15,7 +15,7 @@ export interface QueryOperationRowHeaderProps {
|
||||
headerElement?: React.ReactNode;
|
||||
isContentVisible: boolean;
|
||||
onRowToggle: () => void;
|
||||
reportDragMousePosition: MouseEventHandler<HTMLDivElement>;
|
||||
reportDragMousePosition: MouseEventHandler<HTMLButtonElement>;
|
||||
title?: string;
|
||||
id: string;
|
||||
}
|
||||
@ -62,9 +62,11 @@ export const QueryOperationRowHeader = ({
|
||||
<Stack gap={1} alignItems="center" wrap={false}>
|
||||
{actionsElement}
|
||||
{draggable && (
|
||||
<Icon
|
||||
<IconButton
|
||||
title="Drag and drop to reorder"
|
||||
name="draggabledots"
|
||||
tooltip="Drag and drop to reorder"
|
||||
tooltipPlacement="bottom"
|
||||
size="lg"
|
||||
className={styles.dragIcon}
|
||||
onMouseMove={reportDragMousePosition}
|
||||
|
Loading…
Reference in New Issue
Block a user