mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
fix(searchbar): clear button has focus indicator (#25828)
This commit is contained in:
@ -147,6 +147,13 @@
|
|||||||
appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Normally, we would not want to use :focus
|
||||||
|
* here because that would mean tapping the button
|
||||||
|
* on mobile would focus it (and keep it focused).
|
||||||
|
* However, the clear button always disappears after
|
||||||
|
* being activated, so we never get to that state.
|
||||||
|
*/
|
||||||
.input-clear-icon:focus {
|
.input-clear-icon:focus {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,6 +145,17 @@
|
|||||||
appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Normally, we would not want to use :focus
|
||||||
|
* here because that would mean tapping the button
|
||||||
|
* on mobile would focus it (and keep it focused).
|
||||||
|
* However, the clear button always disappears after
|
||||||
|
* being activated, so we never get to that state.
|
||||||
|
*/
|
||||||
|
.searchbar-clear-button:focus {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
:host(.searchbar-has-value.searchbar-should-show-clear) .searchbar-clear-button {
|
:host(.searchbar-has-value.searchbar-should-show-clear) .searchbar-clear-button {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user