mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 07:41:51 +08:00
fix(searchbar): clear button has focus indicator (#25828)
This commit is contained in:
@ -147,6 +147,13 @@
|
||||
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 {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
@ -145,6 +145,17 @@
|
||||
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 {
|
||||
display: block;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user