hamburgers icon indicating copy to clipboard operation
hamburgers copied to clipboard

Remove Focus Border on Chrome

Open orwells-ghost opened this issue 5 years ago • 3 comments

I just wanted to give a heads up. In Chrome, after pressing the hamburger, a focus border shows up. See image. Screen Shot 2019-07-31 at 6 02 38 PM To fix: .hamburger:focus { outline: 0; }

orwells-ghost avatar Aug 01 '19 01:08 orwells-ghost

In my case this helped me:

.hamburger:focus { -webkit-tap-highlight-color: rgba(0,0,0,0); }

DenisDolzhikov avatar Jun 27 '20 09:06 DenisDolzhikov

You can also do:

.hamburger:focus {
  outline: none;
}

rrickgauer avatar Aug 17 '20 19:08 rrickgauer

Removing the outline is a bad practice in terms of accessibility.

outlinenone.com

ghost avatar Jan 06 '21 21:01 ghost