summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--theme-compiler/src/com/vaadin/sass/visitor/ParentSelectorHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/visitor/ParentSelectorHandler.java b/theme-compiler/src/com/vaadin/sass/visitor/ParentSelectorHandler.java
index 3cc49b06dd..4098cc7cad 100644
--- a/theme-compiler/src/com/vaadin/sass/visitor/ParentSelectorHandler.java
+++ b/theme-compiler/src/com/vaadin/sass/visitor/ParentSelectorHandler.java
@@ -35,7 +35,7 @@ public class ParentSelectorHandler {
BlockNode parentBlock = (BlockNode) parentNode;
for (final String s : block.getSelectorList()) {
- if (s.startsWith("&") || s.endsWith("&")) {
+ if (s.contains("&")) {
for (final String parentSelector : parentBlock
.getSelectorList()) {
newList.add(s.replace("&", parentSelector));