mirror of
https://github.com/grafana/grafana.git
synced 2025-01-08 23:23:45 -06:00
A11y: Fix keyboard accessibility in LayerDragDropList (#71386)
fix(a11y): drag and drop layer list
This commit is contained in:
parent
fdb8257007
commit
d9057c010c
@ -61,14 +61,14 @@ export const LayerDragDropList = <T extends LayerElement>({
|
||||
rows.push(
|
||||
<Draggable key={uid} draggableId={uid} index={rows.length}>
|
||||
{(provided, snapshot) => (
|
||||
// TODO: fix keyboard a11y
|
||||
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
||||
<div
|
||||
className={getRowStyle(isSelected)}
|
||||
ref={provided.innerRef}
|
||||
{...provided.draggableProps}
|
||||
{...provided.dragHandleProps}
|
||||
onMouseDown={() => onSelect(element)}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
>
|
||||
<LayerName
|
||||
name={uid}
|
||||
|
Loading…
Reference in New Issue
Block a user