diff --git a/src/elements/container/container/container.scss b/src/elements/container/container/container.scss index 8a6ad3ca9a..27b441d9eb 100644 --- a/src/elements/container/container/container.scss +++ b/src/elements/container/container/container.scss @@ -55,7 +55,10 @@ } .sbb-container__content { - position: relative; + :host([data-slot-names~='image']) & { + // With relative positioning we ensure the content is in front of the image. + position: relative; + } } ::slotted([slot='image']) {