summaryrefslogtreecommitdiffstats
path: root/theme-compiler/tests/resources/automatic/scss
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2012-12-14 14:13:22 +0200
committerHenri Sara <hesara@vaadin.com>2012-12-14 14:13:22 +0200
commitaff0802d4b22e3d6f1e97c503aa8c5f3dfedd53b (patch)
treef8a13e6bba10ae93df427e2623975045853891e5 /theme-compiler/tests/resources/automatic/scss
parenteced3091e368bb6a4bb36c3df0d2567668ba6c72 (diff)
downloadvaadin-framework-aff0802d4b22e3d6f1e97c503aa8c5f3dfedd53b.tar.gz
vaadin-framework-aff0802d4b22e3d6f1e97c503aa8c5f3dfedd53b.zip
Use separate scope for variables within a mixin (#10453)
Also contains another fix related to how variable values are replaced in mixins. Change-Id: I7a53e0a62041da6557eea10e124e64a55c7823f4
Diffstat (limited to 'theme-compiler/tests/resources/automatic/scss')
-rw-r--r--theme-compiler/tests/resources/automatic/scss/chained_mixins.scss15
-rw-r--r--theme-compiler/tests/resources/automatic/scss/mixin_variables.scss10
2 files changed, 25 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/automatic/scss/chained_mixins.scss b/theme-compiler/tests/resources/automatic/scss/chained_mixins.scss
new file mode 100644
index 0000000000..007d611149
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/scss/chained_mixins.scss
@@ -0,0 +1,15 @@
+/* based on reindeer nativebutton */
+
+@mixin foo-link($styleName : bar) {
+
+.#{$styleName}-link {
+ a: b;
+ }
+
+}
+
+@mixin foo($styleName : bar) {
+ @include foo-link($styleName);
+}
+
+@include foo;
diff --git a/theme-compiler/tests/resources/automatic/scss/mixin_variables.scss b/theme-compiler/tests/resources/automatic/scss/mixin_variables.scss
new file mode 100644
index 0000000000..28cde661dd
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/scss/mixin_variables.scss
@@ -0,0 +1,10 @@
+@mixin color($color : red, $tag : bar) {
+ .#{$tag} {
+ color: $color;
+ }
+}
+$color : green;
+@include color($color: purple, $tag : foo);
+@include color($tag : baz);
+@include color($color: $color, $tag : foobar);
+@include color($tag : foobaz);