Skip to content

Commit

Permalink
fix(shs-5991): remove overflow hidden to li in all scenarios, and add…
Browse files Browse the repository at this point in the history
… it only in specific scenarios
  • Loading branch information
Mari Nez committed Jan 3, 2025
1 parent a12f965 commit 3a25634
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,13 @@ $px-only: true;
}
}

// This prevents the list item to float behind images that are floated to the left
figure.drupal-media-style-align-left ~ ul:not([class]):first-of-type {
li {
overflow: hidden;
}
}

ol {
@include hb-ordered-list;
margin: 0 0 32px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ ul:not([class]) {
@include hb-unordered-list;
}

// This prevents the list item to float behind images that are floated to the left
figure.align-left ~ ul:not([class]):first-of-type {
li {
overflow: hidden;
}
}

ol:not([class]) {
@include hb-ordered-list;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@
margin-bottom: hb-calculate-rems(10px);
padding-left: hb-calculate-rems(18px);

// This prevents the list item to float behind images that are floated to the left
overflow: hidden;

&::before {
content: '';
display: block;
Expand Down

0 comments on commit 3a25634

Please sign in to comment.