chore(a11y): pass LabelConfig values through store SvelteFlow
This commit is contained in:
@@ -70,7 +70,6 @@
|
||||
nodes = $bindable([]),
|
||||
edges = $bindable([]),
|
||||
viewport = $bindable(undefined),
|
||||
descriptions,
|
||||
...props
|
||||
}: SvelteFlowProps<NodeType, EdgeType> &
|
||||
Omit<HTMLAttributes<HTMLDivElement>, 'onselectionchange'> = $props();
|
||||
@@ -218,6 +217,6 @@
|
||||
</Pane>
|
||||
</Zoom>
|
||||
<Attribution {proOptions} position={attributionPosition} />
|
||||
<A11yDescriptions {store} descriptions={descriptions} />
|
||||
<A11yDescriptions {store} />
|
||||
{@render children?.()}
|
||||
</Wrapper>
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
noDragClass,
|
||||
noPanClass,
|
||||
noWheelClass,
|
||||
descriptions,
|
||||
labelConfig,
|
||||
...divAttributes
|
||||
} = $derived(rest);
|
||||
/* eslint-enable @typescript-eslint/no-unused-vars */
|
||||
|
||||
@@ -21,7 +21,7 @@ import type {
|
||||
OnReconnect,
|
||||
OnReconnectStart,
|
||||
OnReconnectEnd,
|
||||
descriptions
|
||||
LabelConfig
|
||||
} from '@xyflow/system';
|
||||
|
||||
import type {
|
||||
@@ -476,5 +476,5 @@ export type SvelteFlowProps<
|
||||
* Custom accessibility messages for screen readers and a11y features.
|
||||
* Allows localization and customization of ARIA descriptions.
|
||||
*/
|
||||
descriptions?: descriptions;
|
||||
labelConfig?: LabelConfig;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user