Skip to content

Commit b0591c2

Browse files
committed
refactor(material/stepper): removes unnecessary aria role
Cleans up previous changes by removing unnecessary aria role of group wrapping the step-header and step-content.
1 parent 09728ea commit b0591c2

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

src/material/stepper/stepper.html

+14-16
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,20 @@
5151
[attr.aria-label]="step.ariaLabel || null"
5252
[attr.aria-labelledby]="(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null"
5353
[attr.aria-disabled]="_stepIsNavigable($index, step) ? null : true">
54-
<div role="group">
55-
<ng-container
56-
[ngTemplateOutlet]="stepTemplate"
57-
[ngTemplateOutletContext]="{step, i: $index}"/>
58-
<div
59-
#animatedContainer
60-
class="mat-vertical-content-container"
61-
[class.mat-stepper-vertical-line]="!$last"
62-
[class.mat-vertical-content-container-active]="selectedIndex === $index"
63-
[attr.inert]="selectedIndex === $index ? null : ''">
64-
<div class="mat-vertical-stepper-content"
65-
[id]="_getStepContentId($index)"
66-
[attr.aria-labelledby]="_getStepLabelId($index)">
67-
<div class="mat-vertical-content">
68-
<ng-container [ngTemplateOutlet]="step.content"/>
69-
</div>
54+
<ng-container
55+
[ngTemplateOutlet]="stepTemplate"
56+
[ngTemplateOutletContext]="{step, i: $index}"/>
57+
<div
58+
#animatedContainer
59+
class="mat-vertical-content-container"
60+
[class.mat-stepper-vertical-line]="!$last"
61+
[class.mat-vertical-content-container-active]="selectedIndex === $index"
62+
[attr.inert]="selectedIndex === $index ? null : ''">
63+
<div class="mat-vertical-stepper-content"
64+
[id]="_getStepContentId($index)"
65+
[attr.aria-labelledby]="_getStepLabelId($index)">
66+
<div class="mat-vertical-content">
67+
<ng-container [ngTemplateOutlet]="step.content"/>
7068
</div>
7169
</div>
7270
</div>

0 commit comments

Comments
 (0)