Skip to content

Commit

Permalink
fix(searchbar): add opacity so the searchbar doesn't show when it's m…
Browse files Browse the repository at this point in the history
…oved over
  • Loading branch information
brandyscarney committed Jun 14, 2016
1 parent 9927cf9 commit b5f93f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/searchbar/searchbar.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ ion-searchbar {
cursor: pointer;
pointer-events: none;
display: none;
opacity: 0;
}

.searchbar-show-cancel .searchbar-ios-cancel {
Expand All @@ -155,6 +156,7 @@ ion-searchbar {
.searchbar-has-focus {
.searchbar-ios-cancel {
pointer-events: auto;
opacity: 1;
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/searchbar/test/toolbar/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h5 padding-left padding-top> Search - Default Toolbar </h5>

<h5 padding-left padding-top> Search - Primary Toolbar </h5>
<ion-toolbar primary>
<ion-searchbar dark [(ngModel)]="primaryToolbarSearch" class="e2ePrimaryToolbarSearchbar"></ion-searchbar>
<ion-searchbar dark [(ngModel)]="primaryToolbarSearch" showCancelButton class="e2ePrimaryToolbarSearchbar"></ion-searchbar>
</ion-toolbar>

<h5 padding-left padding-top> Search - Dark Toolbar </h5>
Expand All @@ -20,7 +20,7 @@ <h5 padding-left padding-top> Search - Dark Toolbar </h5>

<h5 padding-left padding-top> Search - Light Toolbar </h5>
<ion-toolbar light>
<ion-searchbar [(ngModel)]="lightToolbarSearch" class="e2eLightToolbarSearchbar"></ion-searchbar>
<ion-searchbar [(ngModel)]="lightToolbarSearch" showCancelButton class="e2eLightToolbarSearchbar"></ion-searchbar>
</ion-toolbar>

</ion-content>

0 comments on commit b5f93f9

Please sign in to comment.