Ah, no wonder my buttons were being weird on iOS. Thanks. JFYI though, it's:It is webkit-appearance doing that. iOS changes submit buttons and controls to resemble the UI in iOS. Annoying with some custom styles.
webkit-appearance: none;
Does make it look correct though.
I did few tests of my own, as it was strange to me that it looks fine on focus state but not in blur state.This is actually surprisingly annoying to work out, mostly due to specificity. Note that we already have a -webkit-appearance set for search fields: textfield, which is the common recommendation.
Setting the appearance to none does fix the issue, but technically there's a different appearance as the other controls have the standard textfield appearance. If we set input, textarea to none, that applies to checkboxes (and likely radios) as well, which we don't want. If we take away border-radius on input[type=search], that actually overrides .textCtrl due to higher CSS specificity.
We could look at applying -webkit-appearance: none to .textCtrl, but that is a pretty big change so I'm unsure if it will have any other side effects.
input[type="search"]
{
background-image: url(@imagePath/xenforo/clear.png);
}
input,
textarea {
background-image: -webkit-linear-gradient(hsla(0,0%,100%,0), hsla(0,0%,100%,0)); /* Removing the inner shadow, rounded corners on iOS inputs */
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.