Skip to content

Commit

Permalink
Don't report "unknown pseudo class" for :focus-visible (#3886) (#3887)
Browse files Browse the repository at this point in the history
Fix false positives for focus-visible in selector-pseudo-class-no-unknown
  • Loading branch information
mo authored and jeddy3 committed Jan 16, 2019
1 parent bf989e9 commit afb49fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/reference/keywordSets.js
Expand Up @@ -235,6 +235,7 @@ keywordSets.otherPseudoClasses = new Set([
"focus",
"focus-ring",
"focus-within",
"focus-visible",
"fullscreen",
"future",
"has",
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/selector-pseudo-class-no-unknown/__tests__/index.js
Expand Up @@ -21,6 +21,9 @@ testRule(rule, {
{
code: "a:HOVER { }"
},
{
code: "a:focus-visible { }"
},
{
code: "a:before { }"
},
Expand Down

0 comments on commit afb49fc

Please sign in to comment.