csstools / sanitize.css

A best-practices CSS foundation
https://csstools.github.io/sanitize.css
Creative Commons Zero v1.0 Universal
5.21k stars 314 forks source link

iOS 15 brings up some new default styles #230

Open jeslage opened 2 years ago

jeslage commented 2 years ago

We stumbled upon an issue with default stylings on iOS 15. Safari renders some components with color: -apple-system-blue;, so we needed to add the following reset declarations:

input:is([type='button'], [type='submit'], [type='reset']),
input[type='file']::file-selector-button,
button,
select {
  color: inherit;
}

Did you came across the same issue and is this a legitimate way to fix this? And if so, is this fix a candidate for a pull request?

Thanks you and best regards!

garrettw commented 1 year ago

Adding this to my normalize in https://github.com/garrettw/vitals