normalize.css icon indicating copy to clipboard operation
normalize.css copied to clipboard

<button> text color in ios is set to blue by the useragent

Open NathanBeddoeWebDev opened this issue 2 years ago • 4 comments

Summary IOS sets the text color of buttons in the useragent stylesheet to blue. No other browser does this, and it should follow suit. Normalize.css should set the button to inherit the color from it's parent by default, similar to how other properties are done ie. font-family. I've added a screenshots to show that in our case, we're setting the base color to black, and then IOS safari is actually overriding that.

Task Add color: inherit to the button tag to override the useragent styles applied by IOS

image image

NathanBeddoeWebDev avatar Sep 02 '22 01:09 NathanBeddoeWebDev

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

garrettw avatar Feb 15 '23 18:02 garrettw

Any update on this?

aptlin avatar May 20 '23 00:05 aptlin

Pretty sure normalize.css is a dead project. There hasn’t been a commit since 2018 :’)

NathanBeddoeWebDev avatar May 20 '23 00:05 NathanBeddoeWebDev

@aptlin did you try adding the fix to your own stylesheet?

If I understand how Normalize works, you import it first and then do all the necessary work on your own styles on top of it. The cascade would take care of making the fix work

caraya avatar Nov 24 '23 18:11 caraya