-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Appearence-none has browser inconsistencies #333
Comments
Ok - so to fix the Chrome issue according to https://stackoverflow.com/q/2943548/1317935 we would need to change - 'appearance-none': { appearance: 'none' },
+ 'appearance-none': { appearance: 'none', outline: 'none' }, |
And to fix Firefox this works: - 'appearance-none': { appearance: 'none' },
+ 'appearance-none': { appearance: 'none', box-shadow: 'none' }, So therefore can we do the following - and it should fix for everyone: - 'appearance-none': { appearance: 'none' },
+ 'appearance-none': { appearance: 'none', outline: 'none', box-shadow: 'none' }, |
Is this in the scope of tailwind? Beside the reset there are no workarounds for browser inconsistencies. Utilities are generally map to a single css property. So if you wish to add these you could add utility As most utilities map to a css property value this change would feel like a side-effect to me under |
I understand what you are saying. But when you type We already handle browser insonsitencies by adding I think think is a special enough case for it, but I agree it should not be the norm. Anyway - see where @adamwathan et al want to take it.. |
Hey @laurencei! I don't consider this a bug,
It's explicit intention is to set the https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance It would be extremely misleading for @tlgreg is right; if you want to remove the focus outline, use a utility designed to remove the focus outline. If you want to remove the box shadow, use a utility designed to remove the box shadow. |
@adamwathan - ok - understood. I've already added this as an extra CSS rule in my project to get around it. |
Using
appearence-none
on forms is hit and miss depending on browsers.Firefox has a red border on
required
fields if they remain empty:And chrome likes to throw a blue focus on the input field:
I've made a CodePen here where you can see the issues by loading different browsers. https://codepen.io/anon/pen/ypabzP
Suprising IE works fine for once in my life 🤷♂️
The text was updated successfully, but these errors were encountered: