refactor(searchbar): update background for iOS11 translucency

This commit is contained in:
Brandy Carney
2017-11-16 14:48:05 -06:00
parent a1b8b6e6e9
commit 62f03490e5
2 changed files with 35 additions and 2 deletions

View File

@ -41,7 +41,7 @@ $searchbar-ios-input-placeholder-color: rgba(0, 0, 0, .5) !default;
$searchbar-ios-input-text-color: #000 !default;
/// @prop - Background of the searchbar input
$searchbar-ios-input-background-color: rgba(225, 226, 231, 1) !default;
$searchbar-ios-input-background-color: rgba(15, 22, 64, .1) !default;
/// @prop - Transition of the searchbar input
$searchbar-ios-input-transition: all 300ms ease !default;

View File

@ -9,7 +9,20 @@
<body>
<ion-app>
<ion-page>
<ion-content>
<ion-header no-border translucent>
<ion-toolbar>
<ion-title>Searchbar - Toolbar</ion-title>
</ion-toolbar>
<ion-toolbar>
<ion-searchbar translucent></ion-searchbar>
</ion-toolbar>
</ion-header>
<ion-content fullscreen>
<div class="block red"></div>
<div class="block green"></div>
<div class="block blue"></div>
<h5 padding-left padding-top> Search - Transparent Toolbar </h5>
<ion-toolbar transparent>
<ion-searchbar></ion-searchbar>
@ -37,5 +50,25 @@
</ion-content>
</ion-page>
</ion-app>
<style>
.block {
width: 100%;
height: 200px;
margin: 20px auto;
}
.red {
background-color: #ea445a;
}
.green {
background-color: #76d672;
}
.blue {
background-color: #3478f6;
}
</style>
</body>
</html>