DEV Community


Discussion on: 5 CSS interview questions one should know [part 2]

khrome83 profile image
Zane Milakovic

For number three, you are mostly right. I think it’s more or less the best advice to say never modify it, because it takes skill and well thought out design to replace.

A more correct answer is don’t do outline none, unless you are replacing it with something better. Better being easier to see, and clear what it is. The default browser outline is not consistent between browsers, but also does not take into account your design. For example the safari soft blue, could be hidden by a blue background, not giving enough contract to cause the needed effect.

Great tips though.

The a11y is also similar to questions about aria attributes. Basically, don’t use them when possible. Meaning use the correct built in html tags before you try and use aria attributes.