Skip to content

Commit e91b04f

Browse files
committedDec 31, 2021
feat(network): forward aria props to SvgWrapper
1 parent 63a7eb6 commit e91b04f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed
 

‎packages/network/src/Network.tsx

+12-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ const InnerNetwork = <N extends NetworkInputNode>({
4141
onClick,
4242

4343
role = svgDefaultProps.role,
44+
ariaLabel,
45+
ariaLabelledBy,
46+
ariaDescribedBy,
4447
}: InnerNetworkProps<N>) => {
4548
const { margin, innerWidth, innerHeight, outerWidth, outerHeight } = useDimensions(
4649
width,
@@ -103,7 +106,15 @@ const InnerNetwork = <N extends NetworkInputNode>({
103106
}
104107

105108
return (
106-
<SvgWrapper width={outerWidth} height={outerHeight} margin={margin} role={role}>
109+
<SvgWrapper
110+
width={outerWidth}
111+
height={outerHeight}
112+
margin={margin}
113+
role={role}
114+
ariaLabel={ariaLabel}
115+
ariaLabelledBy={ariaLabelledBy}
116+
ariaDescribedBy={ariaDescribedBy}
117+
>
107118
{layers.map((layer, i) => {
108119
if (typeof layer === 'function') {
109120
return (

0 commit comments

Comments
 (0)
Please sign in to comment.