mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(inputs): fix styles in firefox (#17066)
This commit is contained in:
@ -225,6 +225,10 @@
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
.button-native::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.button-native[disabled] {
|
||||
cursor: default;
|
||||
opacity: .5;
|
||||
|
@ -152,6 +152,10 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.item-native::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
button, a {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
|
@ -86,20 +86,11 @@
|
||||
.searchbar-cancel-button {
|
||||
@include padding(0, 0, 0, 8px);
|
||||
|
||||
display: none;
|
||||
|
||||
flex-shrink: 0;
|
||||
|
||||
border: 0;
|
||||
|
||||
outline: none;
|
||||
|
||||
background-color: $searchbar-ios-cancel-button-background-color;
|
||||
|
||||
font-size: $searchbar-ios-cancel-button-font-size;
|
||||
|
||||
cursor: pointer;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
|
||||
@ -118,8 +109,8 @@
|
||||
// Searchbar Has Focus & Animated
|
||||
// -----------------------------------------
|
||||
|
||||
:host(.searchbar-show-cancel.searchbar-has-focus) .searchbar-cancel-button,
|
||||
:host(.searchbar-show-cancel.searchbar-animated) .searchbar-cancel-button {
|
||||
:host(.searchbar-has-focus) .searchbar-cancel-button,
|
||||
:host(.searchbar-animated) .searchbar-cancel-button {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
@ -33,13 +33,6 @@
|
||||
|
||||
.searchbar-cancel-button {
|
||||
@include position(0, null, null, 5px);
|
||||
@include margin(0);
|
||||
|
||||
display: none;
|
||||
|
||||
height: 100%;
|
||||
|
||||
border: 0;
|
||||
|
||||
background-color: $searchbar-md-cancel-button-background-color;
|
||||
|
||||
@ -108,12 +101,12 @@
|
||||
// Searchbar Focused
|
||||
// -----------------------------------------
|
||||
|
||||
:host(.searchbar-has-focus.searchbar-show-cancel) .searchbar-search-icon {
|
||||
:host(.searchbar-has-focus) .searchbar-search-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
:host(.searchbar-has-focus.searchbar-show-cancel) .searchbar-cancel-button {
|
||||
display: inline-flex;
|
||||
:host(.searchbar-has-focus) .searchbar-cancel-button {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
|
@ -100,7 +100,30 @@
|
||||
}
|
||||
|
||||
.searchbar-cancel-button {
|
||||
@include margin(0);
|
||||
|
||||
display: none;
|
||||
|
||||
height: 100%;
|
||||
|
||||
border: 0;
|
||||
|
||||
outline: none;
|
||||
|
||||
color: var(--cancel-button-color);
|
||||
|
||||
cursor: pointer;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
.searchbar-cancel-button > div {
|
||||
display: flex;
|
||||
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.searchbar-clear-button {
|
||||
|
@ -347,7 +347,6 @@ export class Searchbar implements ComponentInterface {
|
||||
'searchbar-animated': animated,
|
||||
'searchbar-no-animate': animated && this.noAnimate,
|
||||
'searchbar-has-value': (this.getValue() !== ''),
|
||||
'searchbar-show-cancel': this.showCancelButton,
|
||||
'searchbar-left-aligned': this.shouldAlignLeft,
|
||||
'searchbar-has-focus': this.focused
|
||||
}
|
||||
@ -366,10 +365,12 @@ export class Searchbar implements ComponentInterface {
|
||||
onTouchStart={this.onCancelSearchbar}
|
||||
class="searchbar-cancel-button"
|
||||
>
|
||||
<div>
|
||||
{ this.mode === 'md'
|
||||
? <ion-icon mode={this.mode} icon={this.cancelButtonIcon} lazy={false}></ion-icon>
|
||||
: this.cancelButtonText
|
||||
}
|
||||
</div>
|
||||
</button>
|
||||
);
|
||||
|
||||
|
@ -13,6 +13,10 @@
|
||||
|
||||
appearance: none;
|
||||
outline: none;
|
||||
|
||||
&::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin text-inherit() {
|
||||
|
Reference in New Issue
Block a user