Skip to content

Commit 7408dc0

Browse files
committed
clean up
1 parent a4cdafb commit 7408dc0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wizard/wizard-step-navigation-expandable.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@ export default function WizardStepNavigationExpandable({
2929
}: WizardStepNavigationExpandableProps) {
3030
const [expanded, setExpanded] = useState(true);
3131
const collapsedStepsLabel = i18nStrings.collapsedStepsLabel?.(activeStepIndex + 1, steps.length);
32+
const headerAriaLabel = collapsedStepsLabel
33+
? `${collapsedStepsLabel} - ${i18nStrings.navigationAriaLabel ?? 'Steps'}`
34+
: undefined;
3235

3336
return (
3437
<InternalExpandableSection
3538
variant="footer"
3639
headerText={collapsedStepsLabel}
40+
headerAriaLabel={headerAriaLabel}
3741
expanded={expanded}
3842
onChange={({ detail }) => setExpanded(detail.expanded)}
3943
>

0 commit comments

Comments
 (0)