Add checked variant

This adds a `checked` variant per #1255 to allow styling of checked elements like checkboxes and radios. It is not enabled for anything by default.
This commit is contained in:
Geoff Selby 2019-12-27 10:11:04 -06:00
parent 63b5cc28f6
commit c74ff9973f
2 changed files with 22 additions and 0 deletions

View file

@ -42,6 +42,7 @@ const defaultVariantGenerators = config => ({
active: generatePseudoClassVariant('active'),
visited: generatePseudoClassVariant('visited'),
disabled: generatePseudoClassVariant('disabled'),
checked: generatePseudoClassVariant('checked'),
first: generatePseudoClassVariant('first-child', 'first'),
last: generatePseudoClassVariant('last-child', 'last'),
odd: generatePseudoClassVariant('nth-child(odd)', 'odd'),