-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
172 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
test/sass/expected-output/public/context/context.register.error.wrong-modifier.css
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
my-component { | ||
property: value; | ||
} | ||
|
||
my-component[disabled] { | ||
property: value-2; | ||
} | ||
|
||
my-component-2 { | ||
property: value; | ||
} | ||
|
||
my-component-2 .wrapper { | ||
property: value-2; | ||
} | ||
|
||
my-component-2[disabled] .wrapper { | ||
property: value-2; | ||
} | ||
|
||
my-component-3 { | ||
property: value; | ||
} | ||
|
||
my-component-3::before { | ||
property: value-2; | ||
} | ||
|
||
my-component-3[disabled]::before { | ||
property: value-2; | ||
} | ||
|
||
my-component-4 { | ||
property: value; | ||
} | ||
|
||
my-component-4[disabled] { | ||
property: value-2; | ||
} |
1 change: 1 addition & 0 deletions
1
test/sass/expected-output/public/state/state.modifier.error.unknown-modifier-2.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* Error SPOT CSS: state/unknown-modifier */ |
2 changes: 1 addition & 1 deletion
2
test/sass/expected-output/public/state/state.modifier.error.unknown-modifier.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
/* Error SPOT CSS: state/super-unknown-modifier */ | ||
/* Error SPOT CSS: state/unknown-modifier */ |
2 changes: 1 addition & 1 deletion
2
test/sass/expected-output/public/variant/variant.modifier.error.unknown-modifier.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
/* Error SPOT CSS: variant/super-unknown-modifier */ | ||
/* Error SPOT CSS: variant/unknown-modifier */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@import "./src/spot-css" | ||
|
||
+mode('draft') | ||
|
||
// no register needed for mutations | ||
+component('my-component') | ||
+default | ||
property: value | ||
|
||
+state('[disabled]') | ||
property: value-2 | ||
|
||
|
||
|
||
// ##################################################### | ||
+mode('draft') | ||
|
||
// no register needed for element | ||
+component('my-component-2') | ||
property: value | ||
|
||
+____________________ | ||
+element('.wrapper') | ||
property: value-2 | ||
|
||
+state('[disabled]') | ||
property: value-2 | ||
|
||
|
||
|
||
// ##################################################### | ||
+mode('draft') | ||
|
||
// no register needed for pseudo-element | ||
+component('my-component-3') | ||
property: value | ||
|
||
+____________________ | ||
+pseudo-element('before') | ||
property: value-2 | ||
|
||
+state('[disabled]') | ||
property: value-2 | ||
|
||
|
||
// ##################################################### | ||
+mode('draft') | ||
|
||
// no default needed | ||
+component('my-component-4') | ||
property: value | ||
|
||
+state('[disabled]') | ||
property: value-2 |
13 changes: 13 additions & 0 deletions
13
test/sass/input/public/state/state.modifier.error.unknown-modifier-2.sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@import "./src/spot-css" | ||
|
||
+component("my-component") | ||
+register | ||
+state('.active') | ||
+element('.wrapper') | ||
|
||
|
||
+____________________ | ||
+element('.wrapper') | ||
+default | ||
|
||
+state(':pasive') // throws error - unknown modifier |