|
1 |
| -<label class="mat-checkbox-layout" #label> |
2 |
| - <div class="mat-checkbox-inner-container" |
3 |
| - [class.mat-checkbox-inner-container-no-side-margin]="!_hasLabel()"> |
4 |
| - <input #input |
5 |
| - class="mat-checkbox-input cdk-visually-hidden" type="checkbox" |
6 |
| - [id]="inputId" |
7 |
| - [required]="required" |
8 |
| - [checked]="checked" |
9 |
| - [value]="value" |
10 |
| - [disabled]="disabled" |
11 |
| - [name]="name" |
12 |
| - [tabIndex]="tabIndex" |
13 |
| - [indeterminate]="indeterminate" |
14 |
| - [attr.aria-label]="ariaLabel" |
15 |
| - [attr.aria-labelledby]="ariaLabelledby" |
16 |
| - (change)="_onInteractionEvent($event)" |
17 |
| - (click)="_onInputClick($event)"> |
18 |
| - <div md-ripple class="mat-checkbox-ripple" |
19 |
| - [mdRippleTrigger]="label" |
20 |
| - [mdRippleDisabled]="_isRippleDisabled()" |
21 |
| - [mdRippleCentered]="true"></div> |
22 |
| - <div class="mat-checkbox-frame"></div> |
23 |
| - <div class="mat-checkbox-background"> |
24 |
| - <svg version="1.1" |
25 |
| - class="mat-checkbox-checkmark" |
26 |
| - xmlns="http://www.w3.org/2000/svg" |
27 |
| - viewBox="0 0 24 24" |
28 |
| - xml:space="preserve"> |
29 |
| - <path class="mat-checkbox-checkmark-path" |
30 |
| - fill="none" |
31 |
| - stroke="white" |
32 |
| - d="M4.1,12.7 9,17.6 20.3,6.3"/> |
33 |
| - </svg> |
34 |
| - <!-- Element for rendering the indeterminate state checkbox. --> |
35 |
| - <div class="mat-checkbox-mixedmark"></div> |
36 |
| - </div> |
| 1 | +<div class="mat-checkbox-inner-container" |
| 2 | + [class.mat-checkbox-inner-container-no-side-margin]="!_hasLabel()"> |
| 3 | + <input #input |
| 4 | + class="mat-checkbox-input cdk-visually-hidden" type="checkbox" |
| 5 | + [id]="inputId" |
| 6 | + [required]="required" |
| 7 | + [checked]="checked" |
| 8 | + [value]="value" |
| 9 | + [disabled]="disabled" |
| 10 | + [name]="name" |
| 11 | + [tabIndex]="tabIndex" |
| 12 | + [indeterminate]="indeterminate" |
| 13 | + [attr.aria-label]="ariaLabel" |
| 14 | + [attr.aria-labelledby]="ariaLabelledby" |
| 15 | + (change)="_onInteractionEvent($event)" |
| 16 | + (click)="_onInputClick($event)"> |
| 17 | + <div md-ripple class="mat-checkbox-ripple" |
| 18 | + [mdRippleTrigger]="label" |
| 19 | + [mdRippleDisabled]="_isRippleDisabled()" |
| 20 | + [mdRippleCentered]="true"></div> |
| 21 | + <div class="mat-checkbox-frame"></div> |
| 22 | + <div class="mat-checkbox-background"> |
| 23 | + <svg version="1.1" |
| 24 | + class="mat-checkbox-checkmark" |
| 25 | + xmlns="http://www.w3.org/2000/svg" |
| 26 | + viewBox="0 0 24 24" |
| 27 | + xml:space="preserve"> |
| 28 | + <path class="mat-checkbox-checkmark-path" |
| 29 | + fill="none" |
| 30 | + stroke="white" |
| 31 | + d="M4.1,12.7 9,17.6 20.3,6.3"/> |
| 32 | + </svg> |
| 33 | + <!-- Element for rendering the indeterminate state checkbox. --> |
| 34 | + <div class="mat-checkbox-mixedmark"></div> |
37 | 35 | </div>
|
| 36 | +</div> |
| 37 | +<label class="mat-checkbox-layout" [attr.for]="inputId" #label> |
38 | 38 | <span class="mat-checkbox-label" #labelWrapper>
|
39 | 39 | <ng-content></ng-content>
|
40 | 40 | </span>
|
|
0 commit comments