Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Focus styles #4

Open
chris-pearce opened this issue Feb 9, 2016 · 1 comment
Open

Focus styles #4

chris-pearce opened this issue Feb 9, 2016 · 1 comment

Comments

@chris-pearce
Copy link
Contributor

chris-pearce commented Feb 9, 2016

I think this:

:focus
{
    /* normalized default styles for all browsers */
    outline: currentColor dotted thin;
    /* on webkit and blink use focus ring;
       style of “auto” hides it, when using mouse or touch */
    outline: -webkit-focus-ring-color auto 5px;
    /*
    if one don't like webkit's ring, use this instead:
    @supports (outline-color: -webkit-focus-ring-color)
    {
        :focus { outline-style: auto; }
    }
    */
}
/* don't use outline on mozilla browsers, if it's not needed */
:focus:not(:-moz-focusring)
{
    outline: none;
}

Should live in Base or Normalise/Reset.

@chris-pearce
Copy link
Contributor Author

Probably should wait for this: w3c/csswg-drafts#709.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant