-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(radio): fix the baseline of radio buttons (#642)
- Loading branch information
Showing
12 changed files
with
167 additions
and
17 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
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
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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<md-card class="demo-card demo-basic"> | ||
<md-toolbar color="primary">Basic Forms</md-toolbar> | ||
<md-card-content> | ||
Text Before | | ||
<md-checkbox>Checkbox Label</md-checkbox> | ||
| Text 1 | | ||
<md-radio-button value="option_1">Radio 1</md-radio-button> | ||
| Text 2 | | ||
<md-radio-button value="option_2">Radio 2</md-radio-button> | ||
| Text 3 | | ||
<md-radio-button value="option_3">Radio 3</md-radio-button> | ||
| Text 4 | | ||
<md-input>Label</md-input> | ||
| Text After | ||
</md-card-content> | ||
</md-card> | ||
|
||
<md-card class="demo-card demo-basic"> | ||
<md-toolbar color="primary">Headers</md-toolbar> | ||
<md-card-content> | ||
<h1> | ||
Text Before | | ||
<md-checkbox>Checkbox Label</md-checkbox> | ||
| Text 1 | | ||
<md-radio-button value="option_1">Radio 1</md-radio-button> | ||
| Text 2 | | ||
<md-radio-button value="option_2">Radio 2</md-radio-button> | ||
| Text 3 | | ||
<md-radio-button value="option_3">Radio 3</md-radio-button> | ||
| Text 4 | | ||
<md-input>Label</md-input> | ||
| Text After | ||
</h1> | ||
</md-card-content> | ||
</md-card> |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@import 'default-theme'; | ||
@import 'variables'; | ||
|
||
.demo-basic { | ||
padding: 0; | ||
} | ||
.demo-basic md-card-content { | ||
padding: 16px; | ||
} | ||
.demo-full-width { | ||
width: 100%; | ||
} | ||
|
||
.demo-icons { | ||
font-size: 100%; | ||
height: inherit; | ||
vertical-align: top; | ||
width: inherit; | ||
} | ||
|
||
.demo-transform { | ||
transition: color $swift-ease-out-duration $swift-ease-out-timing-function; | ||
} | ||
.demo-primary { | ||
color: md-color($md-primary); | ||
} | ||
|
||
.demo-card { | ||
margin: 16px; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import {Component} from '@angular/core'; | ||
import {MD_INPUT_DIRECTIVES} from '@angular2-material/input/input'; | ||
import {MD_BUTTON_DIRECTIVES} from '@angular2-material/button/button'; | ||
import {MD_CARD_DIRECTIVES} from '@angular2-material/card/card'; | ||
import {MD_CHECKBOX_DIRECTIVES} from '@angular2-material/checkbox/checkbox'; | ||
import {MD_RADIO_DIRECTIVES} from '@angular2-material/radio/radio'; | ||
import {MdIcon} from '@angular2-material/icon/icon'; | ||
import {MdToolbar} from '@angular2-material/toolbar/toolbar'; | ||
|
||
import { | ||
MdUniqueSelectionDispatcher | ||
} from '@angular2-material/core/coordination/unique-selection-dispatcher'; | ||
|
||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'baseline-demo', | ||
templateUrl: 'baseline-demo.html', | ||
styleUrls: ['baseline-demo.css'], | ||
providers: [MdUniqueSelectionDispatcher], | ||
directives: [ | ||
MD_BUTTON_DIRECTIVES, | ||
MD_CARD_DIRECTIVES, | ||
MD_CHECKBOX_DIRECTIVES, | ||
MD_RADIO_DIRECTIVES, | ||
MD_INPUT_DIRECTIVES, | ||
MdIcon, | ||
MdToolbar | ||
] | ||
}) | ||
export class BaselineDemo { | ||
name: string; | ||
} |
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
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