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 32c1733 commit 9dd9f18Copy full SHA for 9dd9f18
packages/components/bolt-background/src/background.twig
@@ -56,10 +56,16 @@
56
57
{% set itemAttributes = item.pattern ~ "Attributes" %}
58
{% set ratioKey = item.pattern == "image" ? "useAspectRatio" : "ratio" %}
59
+
60
+ {% if item.pattern != "image" %}
61
+ {% set item = item | merge({
62
+ (itemAttributes): {
63
+ class: ["c-bolt-background__#{item.pattern}"]
64
+ }
65
+ }) %}
66
+ {% endif %}
67
68
{% include pattern_template(item.pattern) with item | merge({
- (itemAttributes): {
- class: ["c-bolt-background__#{item.pattern}"]
- },
69
(ratioKey): false,
70
lazyload: item.lazyload ?? true,
71
cover: true
0 commit comments