Don't apply hover utilities on focus

I thought this was a good idea at first but in practice it feels wrong.
Not totally opposed to it, but I couldn't really find any other sites
that apply a button's hover state on focus for example.
This commit is contained in:
Adam Wathan 2017-10-09 09:29:26 -04:00
parent 9c076c23f3
commit 56c0980158
3 changed files with 682 additions and 1363 deletions

2040
dist/tailwind.css vendored

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -11,8 +11,7 @@ export default function(options) {
// or weird compound selectors like .bg-blue>p>h1
rule.selectors = [
rule.selector,
`.hover\\:${rule.selector.slice(1)}:hover`,
`.hover\\:${rule.selector.slice(1)}:focus`
`.hover\:${rule.selector.slice(1)}:hover`
]
})