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;
|
appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button-native::-moz-focus-inner {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.button-native[disabled] {
|
.button-native[disabled] {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
|
@ -152,6 +152,10 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-native::-moz-focus-inner {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
button, a {
|
button, a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
@ -86,20 +86,11 @@
|
|||||||
.searchbar-cancel-button {
|
.searchbar-cancel-button {
|
||||||
@include padding(0, 0, 0, 8px);
|
@include padding(0, 0, 0, 8px);
|
||||||
|
|
||||||
display: none;
|
|
||||||
|
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
border: 0;
|
|
||||||
|
|
||||||
outline: none;
|
|
||||||
|
|
||||||
background-color: $searchbar-ios-cancel-button-background-color;
|
background-color: $searchbar-ios-cancel-button-background-color;
|
||||||
|
|
||||||
font-size: $searchbar-ios-cancel-button-font-size;
|
font-size: $searchbar-ios-cancel-button-font-size;
|
||||||
|
|
||||||
cursor: pointer;
|
|
||||||
appearance: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -118,8 +109,8 @@
|
|||||||
// Searchbar Has Focus & Animated
|
// Searchbar Has Focus & Animated
|
||||||
// -----------------------------------------
|
// -----------------------------------------
|
||||||
|
|
||||||
:host(.searchbar-show-cancel.searchbar-has-focus) .searchbar-cancel-button,
|
:host(.searchbar-has-focus) .searchbar-cancel-button,
|
||||||
:host(.searchbar-show-cancel.searchbar-animated) .searchbar-cancel-button {
|
:host(.searchbar-animated) .searchbar-cancel-button {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,13 +33,6 @@
|
|||||||
|
|
||||||
.searchbar-cancel-button {
|
.searchbar-cancel-button {
|
||||||
@include position(0, null, null, 5px);
|
@include position(0, null, null, 5px);
|
||||||
@include margin(0);
|
|
||||||
|
|
||||||
display: none;
|
|
||||||
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
border: 0;
|
|
||||||
|
|
||||||
background-color: $searchbar-md-cancel-button-background-color;
|
background-color: $searchbar-md-cancel-button-background-color;
|
||||||
|
|
||||||
@ -108,12 +101,12 @@
|
|||||||
// Searchbar Focused
|
// Searchbar Focused
|
||||||
// -----------------------------------------
|
// -----------------------------------------
|
||||||
|
|
||||||
:host(.searchbar-has-focus.searchbar-show-cancel) .searchbar-search-icon {
|
:host(.searchbar-has-focus) .searchbar-search-icon {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.searchbar-has-focus.searchbar-show-cancel) .searchbar-cancel-button {
|
:host(.searchbar-has-focus) .searchbar-cancel-button {
|
||||||
display: inline-flex;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -100,7 +100,30 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.searchbar-cancel-button {
|
.searchbar-cancel-button {
|
||||||
|
@include margin(0);
|
||||||
|
|
||||||
|
display: none;
|
||||||
|
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
border: 0;
|
||||||
|
|
||||||
|
outline: none;
|
||||||
|
|
||||||
color: var(--cancel-button-color);
|
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 {
|
.searchbar-clear-button {
|
||||||
|
@ -347,7 +347,6 @@ export class Searchbar implements ComponentInterface {
|
|||||||
'searchbar-animated': animated,
|
'searchbar-animated': animated,
|
||||||
'searchbar-no-animate': animated && this.noAnimate,
|
'searchbar-no-animate': animated && this.noAnimate,
|
||||||
'searchbar-has-value': (this.getValue() !== ''),
|
'searchbar-has-value': (this.getValue() !== ''),
|
||||||
'searchbar-show-cancel': this.showCancelButton,
|
|
||||||
'searchbar-left-aligned': this.shouldAlignLeft,
|
'searchbar-left-aligned': this.shouldAlignLeft,
|
||||||
'searchbar-has-focus': this.focused
|
'searchbar-has-focus': this.focused
|
||||||
}
|
}
|
||||||
@ -366,10 +365,12 @@ export class Searchbar implements ComponentInterface {
|
|||||||
onTouchStart={this.onCancelSearchbar}
|
onTouchStart={this.onCancelSearchbar}
|
||||||
class="searchbar-cancel-button"
|
class="searchbar-cancel-button"
|
||||||
>
|
>
|
||||||
{ this.mode === 'md'
|
<div>
|
||||||
? <ion-icon mode={this.mode} icon={this.cancelButtonIcon} lazy={false}></ion-icon>
|
{ this.mode === 'md'
|
||||||
: this.cancelButtonText
|
? <ion-icon mode={this.mode} icon={this.cancelButtonIcon} lazy={false}></ion-icon>
|
||||||
}
|
: this.cancelButtonText
|
||||||
|
}
|
||||||
|
</div>
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -13,6 +13,10 @@
|
|||||||
|
|
||||||
appearance: none;
|
appearance: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|
||||||
|
&::-moz-focus-inner {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin text-inherit() {
|
@mixin text-inherit() {
|
||||||
|
Reference in New Issue
Block a user