Merge pull request #5196 from xyflow/refactor/marker-a11y

chore(marker): add aria-hidden true
This commit is contained in:
Moritz Klack
2025-04-10 11:28:56 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'@xyflow/react': patch
---
Hide edge marker and attribution for screenreaders

View File

@@ -67,7 +67,7 @@ const MarkerDefinitions = ({ defaultColor, rfId }: MarkerDefinitionsProps) => {
}
return (
<svg className="react-flow__marker">
<svg className="react-flow__marker" aria-hidden="true">
<defs>
{markers.map((marker: MarkerProps) => (
<Marker