Skip to content

Commit 1b44bc3

Browse files
committed
fix(material-experimental/mdc-slide-toggle): remove aria-required rather than setting to false
Both are equally valid to mark the control as not required, but setting it to false generates a bunch of false-positive lint errors in google3
1 parent 7468588 commit 1b44bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material-experimental/mdc-slide-toggle/slide-toggle.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[attr.aria-label]="ariaLabel"
1414
[attr.aria-labelledby]="_getAriaLabelledBy()"
1515
[attr.aria-describedby]="ariaDescribedby"
16-
[attr.aria-required]="required"
16+
[attr.aria-required]="required || null"
1717
(click)="_handleClick($event)"
1818
#switch>
1919
<div class="mdc-switch__track"></div>

0 commit comments

Comments
 (0)