File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -877,6 +877,31 @@ test('plugins respect prefix and important options by default when adding utilit
877877 ` )
878878} )
879879
880+ test ( 'important utilities are not made double important when important option is used' , ( ) => {
881+ const { utilities } = processPlugins (
882+ [
883+ function ( { addUtilities } ) {
884+ addUtilities ( {
885+ '.rotate-90' : {
886+ transform : 'rotate(90deg) !important' ,
887+ } ,
888+ } )
889+ } ,
890+ ] ,
891+ makeConfig ( {
892+ important : true ,
893+ } )
894+ )
895+
896+ expect ( css ( utilities ) ) . toMatchCss ( `
897+ @variants {
898+ .rotate-90 {
899+ transform: rotate(90deg) !important
900+ }
901+ }
902+ ` )
903+ } )
904+
880905test ( "component declarations respect the 'prefix' option by default" , ( ) => {
881906 const { components } = processPlugins (
882907 [
You can’t perform that action at this time.
0 commit comments