-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(material-experimental/radio): use MDC DOM structure and styles (#…
- Loading branch information
1 parent
30de283
commit 2112fac
Showing
5 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
<!-- TODO: copy in demo template from existing mat-radio demo. --> | ||
Not yet implemented. | ||
<h1>Basic Example</h1> | ||
<section class="demo-section"> | ||
<mat-radio name="group1">Option 1</mat-radio> | ||
<mat-radio name="group1">Option 2</mat-radio> | ||
<mat-radio name="group1">Option 3</mat-radio> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
<!-- TODO: MDC template here. --> | ||
<div class="mdc-form-field"> | ||
<div class="mdc-radio"> | ||
<input class="mdc-radio__native-control" type="radio" [id]="inputId"> | ||
<div class="mdc-radio__background"> | ||
<div class="mdc-radio__outer-circle"></div> | ||
<div class="mdc-radio__inner-circle"></div> | ||
</div> | ||
</div> | ||
<label [for]="inputId" #label> | ||
<ng-content></ng-content> | ||
</label> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
// TODO: MDC core styles here. | ||
@import '@material/radio/mixins'; | ||
@import '@material/form-field/mixins'; | ||
@import '../mdc-helpers/mdc-helpers'; | ||
|
||
|
||
@include mdc-radio-without-ripple($query: $mat-base-styles-query); | ||
@include mdc-form-field-core-styles($query: $mat-base-styles-query); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters