Merge pull request #5196 from xyflow/refactor/marker-a11y
chore(marker): add aria-hidden true
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@xyflow/react': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Hide edge marker and attribution for screenreaders
|
||||||
@@ -67,7 +67,7 @@ const MarkerDefinitions = ({ defaultColor, rfId }: MarkerDefinitionsProps) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<svg className="react-flow__marker">
|
<svg className="react-flow__marker" aria-hidden="true">
|
||||||
<defs>
|
<defs>
|
||||||
{markers.map((marker: MarkerProps) => (
|
{markers.map((marker: MarkerProps) => (
|
||||||
<Marker
|
<Marker
|
||||||
|
|||||||
Reference in New Issue
Block a user