Skip to content

Commit

Permalink
fix(sbb-container): remove relative positioning for non-image case (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB authored Aug 26, 2024
1 parent 07e4031 commit d0d928f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/elements/container/container/container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand Down

0 comments on commit d0d928f

Please sign in to comment.