Skip to content

Commit

Permalink
aria label for SteppedTracker steps
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhazledine committed Sep 23, 2024
1 parent 9e65a95 commit 1cc1e86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,10 @@ export const TrackerConnector = ({ state }: TrackerConnectorProps) => {
window: targetWindow,
});

return <span className={clsx(withBaseName(), withBaseName(state))} />;
return (
<span
className={clsx(withBaseName(), withBaseName(state))}
aria-hidden="true"
/>
);
};
3 changes: 2 additions & 1 deletion packages/lab/src/stepped-tracker/TrackerStep/TrackerStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,11 @@ export const TrackerStep = (props: TrackerStepProps) => {
className: containerClass,
style: innerStyle,
"aria-current": ariaCurrent,
"aria-label": `Step ${stepNumber + 1} (${stage}${status ? `, ${status}` : ""})`,
...restProps,
children: (
<>
<div className={withBaseName("indicator")}>
<div className={withBaseName("indicator")} aria-hidden="true">
<Icon size={iconSize} />
</div>
{hasConnector && <TrackerConnector state={connectorState} />}
Expand Down

0 comments on commit 1cc1e86

Please sign in to comment.