Skip to content

Commit 7c6a4bb

Browse files
committed
Fix refactorTemplateString
1 parent 8d2d4eb commit 7c6a4bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<div class="{{ class|default('') }}" style="{{ style|default('') }}">
2-
{% include "/templates/ChildComponent.twig" with { 'test': "test", 'class': "", 'style': ( "fill:{{ color }};" ) } %}
2+
{% include "/templates/ChildComponent.twig" with { 'test': "test", 'class': "", 'style': ( "fill:" ~ ( color ) ~ ";" ) } %}
33
{% include "/templates/ChildComponent.twig" with { 'class': "foo" ~ " " ~ ( "bar" ), 'style': "" } %}
44
{% include "/templates/ChildComponent.twig" with { 'class': "foo" ~ " " ~ ( bar ), 'style': "" } %}
55
{% include "/templates/ChildComponent.twig" with { 'class': "product-column__tile" ~ " " ~ ( isSingleProductTile ? 'product-column__tile--large ' ), 'style': "" } %}
6+
{% include "/templates/ChildComponent.twig" with { 'ariaLabelledby': "foo-" ~ ( _uid ) ~ "", 'class': "", 'style': "" } %}
67
</div>

tests/fixtures/vue-component/component-with-child-binding.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<ChildComponent class="foo" :class="`bar`" />
55
<ChildComponent class="foo" :class="bar" />
66
<ChildComponent class="product-column__tile" :class="{'product-column__tile--large': isSingleProductTile }" />
7+
<ChildComponent :aria-labelledby="`foo-${_uid}`" />
78
</div>
89
</template>
910
<script>

0 commit comments

Comments
 (0)