We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4cdafb commit 7408dc0Copy full SHA for 7408dc0
src/wizard/wizard-step-navigation-expandable.tsx
@@ -29,11 +29,15 @@ export default function WizardStepNavigationExpandable({
29
}: WizardStepNavigationExpandableProps) {
30
const [expanded, setExpanded] = useState(true);
31
const collapsedStepsLabel = i18nStrings.collapsedStepsLabel?.(activeStepIndex + 1, steps.length);
32
+ const headerAriaLabel = collapsedStepsLabel
33
+ ? `${collapsedStepsLabel} - ${i18nStrings.navigationAriaLabel ?? 'Steps'}`
34
+ : undefined;
35
36
return (
37
<InternalExpandableSection
38
variant="footer"
39
headerText={collapsedStepsLabel}
40
+ headerAriaLabel={headerAriaLabel}
41
expanded={expanded}
42
onChange={({ detail }) => setExpanded(detail.expanded)}
43
>
0 commit comments