Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit fa035ad

Browse files
authored
Add variant for "disabled" pseudo-selector (#24)
1 parent 2c09037 commit fa035ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ module.exports = function() {
2525
});
2626
});
2727

28+
addVariant('dark-disabled', ({modifySelectors, separator}) => {
29+
modifySelectors(({className}) => {
30+
return `${darkSelector} .${e(`dark-disabled${separator}${className}`)}:disabled`;
31+
});
32+
});
33+
2834
addVariant('dark-group-hover', ({modifySelectors, separator}) => {
2935
modifySelectors(({className}) => {
3036
return `${darkSelector} .group:hover .${e(`dark-group-hover${separator}${className}`)}`;

0 commit comments

Comments
 (0)