Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 524 Bytes

selector-pseudo-class-focus.md

File metadata and controls

44 lines (32 loc) · 524 Bytes

Pattern: Missing use of :focus

Issue: -

Description

Checks the presence of a pseudo-class for selectors with :hover.

a:hover,
a:focus {
}

This rule considers :focus pseudo-class selector defined in the CSS Specifications.

Examples

The following pattern are considered violations:

a:hover {
}

The following patterns are not considered violations:

a:hover,
a:focus {
}
a:focus {
}
a:hover {
}
a:focus {
}