Skip to content

[Feature Proposal] Element Focus Outline Removal #385

@davidpiesse

Description

@davidpiesse

Proposal:
Add a new class "no-outline"

.no-outline:focus {
  outline:0;
}

Reasoning:
When creating a button that is rounded you will potentially (browser dependent but happens in Chrome) get a blue ring around the button that does not line up with the buttons edge.

<button class="bg-blue hover:bg-blue-dark text-white font-bold py-2 px-4 rounded-full">
  Button
</button>

image
Clicking on it renders this:
image

This happens on the Tailwind Docs site here

Similar to #56

Happy to PR

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