This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(layout): 'flex' change per recommended workarounds
Per recommended 'flex' settings for Chrome and IE [workarounds](http://philipwalton.com/articles/normalizing-cross-browser-flexbox-bugs/): * use flex === `flex:1 1 0%` instead of `flex:1`. Do not use unitless flex-basis values in the flex shorthand because IE 10-11 will error. * in layout="column" add `flex-shrink:0`. Chrome, Opera, and Safari do not honor the default min-content size of flex items. For column modes, set flex-shrink to 0 (instead of the default 1) to avoid unwanted shrinkage. * add 'flex-nogrow' to symmetrically balance 'flex-noshrink' * fix BottomSheet Grid, Checkbox, Dialog demos with layout. * fix Dialog Custom demo to use fullscreen for `$mdMedia('xs') || $mdMedia('sm')` Closes #6205.
- Loading branch information
1 parent
190d304
commit f376178
Showing
10 changed files
with
110 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,50 @@ | ||
|
||
<div ng-controller="AppCtrl" class="md-padding" ng-cloak> | ||
<fieldset class="standard"> | ||
<legend>Using <code>ng-model</code></legend> | ||
<div layout="row" layout-wrap> | ||
<div flex="50"> | ||
<md-checkbox ng-model="data.cb1" aria-label="Checkbox 1"> | ||
Checkbox 1: {{ data.cb1 }} | ||
</md-checkbox> | ||
<div> | ||
<fieldset class="standard"> | ||
<legend>Using <code>ng-model</code></legend> | ||
<div layout="column" layout-wrap layout-gt-sm="row" > | ||
<div flex-xs flex="50"> | ||
<md-checkbox ng-model="data.cb1" aria-label="Checkbox 1"> | ||
Checkbox 1: {{ data.cb1 }} | ||
</md-checkbox> | ||
</div> | ||
<div flex-xs flex="50"> | ||
<div layout-xs="column" flex-xs="100"> | ||
<md-checkbox | ||
ng-model="data.cb2" | ||
aria-label="Checkbox 2" | ||
ng-true-value="'yup'" | ||
ng-false-value="'nope'" | ||
class="md-warn md-align-top-left" flex> | ||
Checkbox 2 (md-warn) <br/> | ||
<span class="ipsum"> | ||
Duis placerat lectus et justo mollis, nec sodales orci congue. Vestibulum semper non urna ac suscipit. | ||
Vestibulum tempor, ligula id laoreet hendrerit, massa augue iaculis magna, | ||
sit amet dapibus tortor ligula non nibh. | ||
</span> | ||
<br/> | ||
{{ data.cb2 }} | ||
</md-checkbox> | ||
</div> | ||
</div> | ||
<div flex-xs flex="50"> | ||
<md-checkbox ng-disabled="true" aria-label="Disabled checkbox" ng-model="data.cb3"> | ||
Checkbox: Disabled | ||
</md-checkbox> | ||
</div> | ||
<div flex-xs flex="50"> | ||
<md-checkbox ng-disabled="true" aria-label="Disabled checked checkbox" ng-model="data.cb4" ng-init="data.cb4=true"> | ||
Checkbox: Disabled, Checked | ||
</md-checkbox> | ||
</div> | ||
<div flex-xs flex="50"> | ||
<md-checkbox md-no-ink aria-label="Checkbox No Ink" ng-model="data.cb5" class="md-primary"> | ||
Checkbox (md-primary): No Ink | ||
</md-checkbox> | ||
</div> | ||
</div> | ||
<div flex="50"> | ||
<md-checkbox | ||
ng-model="data.cb2" | ||
aria-label="Checkbox 2" | ||
ng-true-value="'yup'" | ||
ng-false-value="'nope'" | ||
class="md-warn md-align-top-left"> | ||
Checkbox 2 (md-warn) <br/> | ||
<span class="ipsum"> | ||
Duis placerat lectus et justo mollis, nec sodales orci congue. Vestibulum semper non urna ac suscipit. | ||
Vestibulum tempor, ligula id laoreet hendrerit, massa augue iaculis magna, | ||
sit amet dapibus tortor ligula non nibh. | ||
</span> | ||
<br/> | ||
{{ data.cb2 }} | ||
</md-checkbox> | ||
</div> | ||
<div flex="50"> | ||
<md-checkbox ng-disabled="true" aria-label="Disabled checkbox" ng-model="data.cb3"> | ||
Checkbox: Disabled | ||
</md-checkbox> | ||
</div> | ||
<div flex="50"> | ||
<md-checkbox ng-disabled="true" aria-label="Disabled checked checkbox" ng-model="data.cb4" ng-init="data.cb4=true"> | ||
Checkbox: Disabled, Checked | ||
</md-checkbox> | ||
</div> | ||
<div flex="50"> | ||
<md-checkbox md-no-ink aria-label="Checkbox No Ink" ng-model="data.cb5" class="md-primary"> | ||
Checkbox (md-primary): No Ink | ||
</md-checkbox> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</fieldset> | ||
|
||
</div> | ||
</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,3 +1,7 @@ | ||
div.flex-xs { | ||
min-height:40px; | ||
|
||
} | ||
.checkboxDemo1 div { | ||
clear: both; | ||
} | ||
|
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
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