Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradient border on click

I've been noticing that if clicking on a button on my site (as shown in the example below) a gradient border is shown around the button. I've tried several browsers but this only shows in Google Chrome.

Is there a way of removing this CSS wize?

enter image description here

like image 815
holyredbeard Avatar asked Nov 01 '22 08:11

holyredbeard


1 Answers

You can disable the outline with outline:none.

input,
select,
textarea,
button {
  outline: none;
}

And to stay safe with focus states:

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

However, some think it isn't a good idea to disable the outline due to accessibility issues (http://outlinenone.com/)

like image 74
robertp Avatar answered Nov 16 '22 13:11

robertp