Skip to content

Commit

Permalink
fix(Dl): ensure horizontal wrap no matter what available space (#1965)
Browse files Browse the repository at this point in the history
The current approach did not work always. When the parent space where to wide, it did not wrap.
The new approach does do it. Here is my testing case: https://codesandbox.io/s/eufemia-timeline-example-4x7u7n?file=/src/App.tsx

It should not have any impact on our existing visual tests.
  • Loading branch information
tujoworker authored Feb 3, 2023
1 parent 65c9048 commit ace6eeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ html[data-whatinput=keyboard] .dnb-blockquote:not(.dnb-blockquote--no-background
margin-top: 0;
}
.dnb-dl dd.dnb-dl__item {
width: 100%;
flex-basis: 100%;
height: 0;
margin: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/dnb-eufemia/src/style/elements/lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
}

dd#{&}__item {
width: 100%;
flex-basis: 100%; // ensures we always break to a new line, no matter what the available space is
height: 0;
margin: 0;
}
Expand Down

0 comments on commit ace6eeb

Please sign in to comment.