Skip to content

outline-none doesn't work on button with focus in chrome #1231

@desaintflorent

Description

@desaintflorent

Hi,

First of all, a big thank's for your work on Tailwindcss, it make coding css so cool again !

Maybe it's not a bug and you thought about this already, but it seems strange that outline-none doesn't set outline-none on focus too, on button element.
I noticed that only on Chrome and only on buttons. If I want to remove outline on focus, I need to do :

<button class="outline-none focus:outline-none">click-me</button>

If not I see a big blue outline when the button is in Focus state.

It seems that's its coming from normalize.css with :

button:focus {
  outline: 1px dotted;
  outline: 5px auto -webkit-focus-ring-color;
}

If I add outline: none; manually it's working too.

Is that a normal behaviour ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions