We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39c8925 commit 3941f89Copy full SHA for 3941f89
index.js
@@ -3,6 +3,17 @@ module.exports = function (variants) {
3
const className = 'visuallyhidden';
4
const focusClassName = 'focusable';
5
6
+ const original = {
7
+ clip: 'auto',
8
+ clipPath: 'none',
9
+ height: 'auto',
10
+ margin: 'auto',
11
+ overflow: 'auto',
12
+ position: 'relative',
13
+ width: 'auto',
14
+ whiteSpace: 'normal',
15
+ }
16
+
17
const focusable = {
18
clip: 'auto',
19
clipPath: 'none',
@@ -28,6 +39,8 @@ module.exports = function (variants) {
28
39
whiteSpace: 'nowrap', /* 1 */
29
40
},
30
41
42
+ [`.not-${className}`]: original,
43
31
44
[`.${className}.${focusClassName}:active`]: focusable,
32
45
[`.${className}.${focusClassName}:focus`]: focusable,
33
46
0 commit comments