fix(searchbar): iOS fixed searchbar cancel button color in a toolbar

references #289
This commit is contained in:
Brandy Carney
2015-12-08 12:54:20 -05:00
parent e608170d19
commit 5f55f9b4ad
4 changed files with 15 additions and 4 deletions

View File

@@ -177,10 +177,15 @@ ion-searchbar {
@each $color-name, $color-value in $colors-ios {
ion-searchbar[#{$color-name}] {
.searchbar-ios-cancel {
color: $color-value;
}
}
.toolbar[#{$color-name}] ion-searchbar {
.searchbar-ios-cancel {
color: inverse($color-value);
}
}
}

View File

@@ -10,3 +10,7 @@ it('primary should focus', function() {
it('danger should focus', function() {
element(by.css('.e2eDangerToolbarSearchbar input')).sendKeys("CC");
});
it('light should focus', function() {
element(by.css('.e2eLightToolbarSearchbar input')).sendKeys("DD");
});

View File

@@ -7,9 +7,6 @@ import {SearchPipe} from 'ionic/components/searchbar/searchbar';
templateUrl: 'main.html'
})
class E2EApp {
DefaultToolbarSearch: string;
PrimaryToolbarSearch: string;
DangerToolbarSearch: string;
constructor() {

View File

@@ -18,4 +18,9 @@
<ion-searchbar [(ng-model)]="dangerToolbarSearch" show-cancel="true" class="e2eDangerToolbarSearchbar"></ion-searchbar>
</ion-toolbar>
<h5 padding-left padding-top> Search - Light Toolbar </h5>
<ion-toolbar light>
<ion-searchbar [(ng-model)]="lightToolbarSearch" show-cancel="true" class="e2eLightToolbarSearchbar"></ion-searchbar>
</ion-toolbar>
</ion-content>