feat(minimap): turn ariaLabel into an optional property
This commit is contained in:
@@ -155,7 +155,7 @@ function MiniMap({
|
||||
ref={svg}
|
||||
onClick={onSvgClick}
|
||||
>
|
||||
<title id={labelledBy}>{ariaLabel}</title>
|
||||
{ariaLabel && <title id={labelledBy}>{ariaLabel}</title>}
|
||||
{nodes.map((node) => {
|
||||
return (
|
||||
<MiniMapNode
|
||||
|
||||
@@ -16,5 +16,5 @@ export type MiniMapProps<NodeData = any> = Omit<HTMLAttributes<SVGSVGElement>, '
|
||||
onNodeClick?: (event: MouseEvent, node: Node<NodeData>) => void;
|
||||
pannable?: boolean;
|
||||
zoomable?: boolean;
|
||||
ariaLabel?: string;
|
||||
ariaLabel?: string | null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user