Reputation: 2121
Is it possible to always show the default 'x' in a search input HTML element in Microsoft Edge only by using CSS (without creating custom component)?
The pseudo-element ::-ms-clear
and the opacity
property do not have any affect on this 'x' button in Microsoft Edge.
Upvotes: 1
Views: 1164
Reputation: 138027
Doesn't look like it's possible without creating your own x
button. From MDN - ::-ms-clear
:
The clear button is only shown on focused, non-empty text controls. This includes inputs that appear text-like or fall back to type="text".
Upvotes: 2