-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Normalise button styling #38
Comments
Would be awesome if you could look through the normalize.css issue tracker and see if you can find some relevant discussions about it and link them here. |
Latest discussion: necolas/normalize.css#729 The main discussion seems to have taken place almost 4 years ago: necolas/normalize.css#646 In the old discussion, one of the normalize authors dismisses the whole idea of normalising form element styles, as he believes that would interfere with OS UI guidelines. He suggests perhaps using an additional normalize/reset stylesheet, as an option, just for forms. Sorry, but I strongly disagree, because:
In any case, the last official release/update to normalize.css was well over a year ago - and the discussion on normalising form styles seems to have been closed and forgotten. I’ve cross-posted a message there, but I don’t hold any hopes of them updating it to include it. TBH, the normalize.css project is starting to feel somewhat outdated and stale, and that’s perhaps the very reason why people are looking at alternatives - like modern-normalize! |
Are you talking about the actual look of the elements or just margin/padding/sizes? Normalizing the latter could make sense here, but I don't think UI styling should be in a normalization library. It's simply too opinionated. |
@sindresorhus there are currently 2 ways to setup a 'starting point' in a CSS project:
In 'normalize.css' we already have "opinionated" styling for elements everywhere - all the typography and typesetting conventions, for example. The point is, that designers really care very little what these 'default' values are - as long as they are CONSISTENT in all browsers. The value of projects like modern-normalize is precisely this: provide CONSISTENCY. If there are elements for which we are not providing a consistent baseline, then we should address it. Saying that providing a consistent, minimal cross-browser style for form elements is "opinionated", but setting default styling for headings (for example) isn't is inconsistent and arbitrary. |
Setting a font-size is different than completely restyling an element. |
@sindresorhus not for inline text elements - and even for block elements, we also have margins, paddings, and other settings. For the designer/developer, the only difference is that the settings for these elements are consistent on all browsers, and they can rely on what modern-normalize is doing. When dealing with form elements, we're back to being "in the browser's hands"... |
I don't know if it is related but.. on Chrome, |
One of the issues that normalize.css never addressed very well is the discrepancy in the styling of some form elements in different browsers. It would be awesome if modern-normalize could address at least the discrepancies in the
<button>
elements that still exist.As an example, right now after applying modern-normalize, this is what buttons look like on Safari:
...and this is what they look like on Firefox:
The text was updated successfully, but these errors were encountered: