File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
packages/@headlessui-tailwindcss/src Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,22 @@ it('should generate the ui-focus-visible variant', async () => {
68
68
} )
69
69
} )
70
70
71
+ it ( 'should generate the ui-not-focus-visible variant' , async ( ) => {
72
+ let config = {
73
+ content : [ { raw : html `<div class= "ui-not-focus-visible:underline" > </ div> ` } ] ,
74
+ plugins : [ hui ] ,
75
+ }
76
+
77
+ return run ( '@tailwind utilities' , config ) . then ( ( result ) => {
78
+ expect ( result . css ) . toMatchFormattedCss ( css `
79
+ .ui-not-focus-visible\:underline : focus : where (: not ([data-headlessui-focus-visible ]
80
+ .ui-not-focus-visible\:underline )) {
81
+ text-decoration-line : underline;
82
+ }
83
+ ` )
84
+ } )
85
+ } )
86
+
71
87
describe ( 'custom prefix' , ( ) => {
72
88
it ( 'should generate css for an exposed state' , async ( ) => {
73
89
let config = {
You can’t perform that action at this time.
0 commit comments