We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d684ef6 commit 606e507Copy full SHA for 606e507
src/material/slide-toggle/slide-toggle.html
@@ -53,13 +53,11 @@
53
</span>
54
</button>
55
56
- @if (!hideLabel) {
57
<!--
58
Clicking on the label will trigger another click event from the button.
59
Stop propagation here so other listeners further up in the DOM don't execute twice.
60
-->
61
<label class="mdc-label" [for]="buttonId" [attr.id]="_labelId" (click)="$event.stopPropagation()">
62
<ng-content></ng-content>
63
</label>
64
- }
65
</div>
src/material/slide-toggle/slide-toggle.scss
@@ -33,6 +33,10 @@ $fallbacks: m3-slide-toggle.get-tokens();
33
}
34
35
36
+label:empty {
37
+ display: none;
38
+}
39
+
40
.mdc-switch__track {
41
overflow: hidden;
42
position: relative;
0 commit comments