We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad560ad commit fc6d598Copy full SHA for fc6d598
packages/components/bolt-background/src/background.twig
@@ -55,11 +55,12 @@
55
{% for item in contentItems %}
56
57
{% set itemAttributes = item.pattern ~ "Attributes" %}
58
+ {% set ratioKey = item.pattern == "image" ? "useAspectRatio" : "ratio" %}
59
{% include pattern_template(item.pattern) with item | merge({
60
(itemAttributes): {
61
class: ["c-bolt-background__#{item.pattern}"]
62
},
- ratio: false,
63
+ (ratioKey): false,
64
lazyload: item.lazyload ? item.lazyload : true
65
}) only %}
66
{% endfor %}
0 commit comments