Merge branch 'master' into list-border-refactor

This commit is contained in:
Brandy Carney
2015-11-12 21:07:07 -05:00
6 changed files with 69 additions and 4 deletions

View File

@ -100,3 +100,22 @@ sup {
sub { sub {
bottom: -0.25em; bottom: -0.25em;
} }
@each $color, $value in $colors {
h1, h2, h3, h4, h5, h6,
p,
span,
a,
small,
b,
i,
u,
strong,
em,
sub,
sup {
&[#{$color}] {
color: $value !important;
}
}
}

View File

@ -50,7 +50,6 @@ button,
icon { icon {
flex: 1; flex: 1;
font-size: 2.8rem; font-size: 2.8rem;
min-width: 64px;
} }
} }

View File

@ -1,8 +1,16 @@
it('should open action sheet', function() { it('should open modal', function() {
element(by.css('.e2eOpenModal')).click(); element(by.css('.e2eOpenModal')).click();
}); });
it('should close with close button click', function() { it('should close with close button click', function() {
element(by.css('.e2eCloseMenu')).click(); element(by.css('.e2eCloseMenu')).click();
}); });
it('should open toolbar modal', function() {
element(by.css('.e2eOpenToolbarModal')).click();
});
it('should close toolbar modal', function() {
element(by.css('.e2eCloseToolbarModal')).click();
});

View File

@ -33,6 +33,10 @@ class MyAppCmp {
this.modal.open(PlainPage); this.modal.open(PlainPage);
} }
openToolbarModal() {
this.modal.open(ToolbarModal);
}
openModalChildNav() { openModalChildNav() {
this.modal.open(ContactModal, { this.modal.open(ContactModal, {
handle: 'my-awesome-modal' handle: 'my-awesome-modal'
@ -63,6 +67,32 @@ class PlainPage {
} }
} }
@Page({
template: `
<ion-toolbar>
<ion-title>Modals</ion-title>
</ion-toolbar>
<ion-toolbar primary>
<ion-title>Another toolbar</ion-title>
</ion-toolbar>
<ion-content padding>
<button block danger (click)="closeModal()" class="e2eCloseToolbarModal">
<icon close></icon>
Close Modal
</button>
</ion-content>
`
})
class ToolbarModal {
constructor(private modal: Modal) {}
closeModal() {
this.modal.get().close();
}
}
@Page({ @Page({
template: '<ion-nav [root]="rootView"></ion-nav>' template: '<ion-nav [root]="rootView"></ion-nav>'

View File

@ -6,6 +6,9 @@
<p> <p>
<button (click)="openModal()">Open plain modal</button> <button (click)="openModal()">Open plain modal</button>
</p> </p>
<p>
<button class="e2eOpenToolbarModal" (click)="openToolbarModal()">Open modal w/ toolbar</button>
</p>
<p> <p>
<button (click)="openModalCustomAnimation()">Modal: Custom Animation</button> <button (click)="openModalCustomAnimation()">Modal: Custom Animation</button>
</p> </p>

View File

@ -9,14 +9,20 @@ $cordova-ios-toolbar-padding: 2rem !default;
ion-navbar-section, ion-navbar-section,
ion-navbar, ion-navbar,
ion-menu > ion-toolbar { ion-menu > ion-toolbar:first-child,
ion-menu > ion-toolbar:first-child ion-title,
ion-page.modal > ion-toolbar:first-child,
ion-page.modal > ion-toolbar:first-child ion-title, {
min-height: $toolbar-ios-height + $cordova-ios-toolbar-padding; min-height: $toolbar-ios-height + $cordova-ios-toolbar-padding;
height: $toolbar-ios-height + $cordova-ios-toolbar-padding; height: $toolbar-ios-height + $cordova-ios-toolbar-padding;
} }
ion-navbar, ion-navbar,
ion-navbar ion-title, ion-navbar ion-title,
ion-menu > ion-toolbar { ion-menu > ion-toolbar:first-child,
ion-menu > ion-toolbar:first-child ion-title,
ion-page.modal > ion-toolbar:first-child,
ion-page.modal > ion-toolbar:first-child ion-title, {
padding-top: $cordova-ios-toolbar-padding; padding-top: $cordova-ios-toolbar-padding;
} }