mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(search-bar): gave the cancel button a min height and changed to a longer text
Removed the extra selector in the css, references #247
This commit is contained in:
@@ -82,7 +82,7 @@ ion-search-bar {
|
||||
.search-bar-cancel {
|
||||
@extend button[clear];
|
||||
transition: $search-bar-ios-cancel-transition;
|
||||
min-height: 0;
|
||||
min-height: 30px;
|
||||
|
||||
padding-left: 8px;
|
||||
padding-right: 0;
|
||||
@@ -99,14 +99,6 @@ ion-search-bar {
|
||||
}
|
||||
}
|
||||
|
||||
.search-bar-cancel {
|
||||
@extend button[clear];
|
||||
transition: $search-bar-ios-cancel-transition;
|
||||
padding-left: 8px;
|
||||
min-height: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
&.hairlines ion-search-bar {
|
||||
border-bottom-width: 0.55px;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<ion-search-bar [(ng-model)]="defaultCancel" show-cancel="true" class="e2eDefaultCancelButtonFloatingSearchBar"></ion-search-bar>
|
||||
|
||||
<h5 padding-left> Search - Custom Cancel Button </h5>
|
||||
<ion-search-bar [(ng-model)]="customCancel" show-cancel="true" cancel-text="Done" class="e2eCustomCancelButtonFloatingSearchBar"></ion-search-bar>
|
||||
<ion-search-bar [(ng-model)]="customCancel" show-cancel="true" cancel-text="Really Long Cancel" class="e2eCustomCancelButtonFloatingSearchBar"></ion-search-bar>
|
||||
|
||||
<h5 padding-left> Search - Custom Cancel Action</h5>
|
||||
<ion-search-bar [(ng-model)]="customCancelAction" show-cancel="true" cancel-text="Done" [cancel-action]="myCancelAction" class="e2eCustomCancelActionFloatingSearchBar"></ion-search-bar>
|
||||
|
||||
Reference in New Issue
Block a user