Skip to content

Commit

Permalink
fix(DrawerList): ensure links do wrap to new line (#2700)
Browse files Browse the repository at this point in the history
Closes #2698
  • Loading branch information
tujoworker authored Sep 29, 2023
1 parent bad7129 commit c994df4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ export const DrawerListExampleOnlyToVisualize = () => (
<span className="dnb-drawer-list__option__item item-nr-1">
<NumberFormat ban>11345678962</NumberFormat>
</span>
<span className="dnb-drawer-list__option__item item-nr-2">
<a
className="dnb-anchor dnb-anchor--has-icon"
href="/uilib/components/fragments/drawer-list/"
>
Long link that will wrap over several lines
</a>
</span>
<span className="dnb-drawer-list__option__item">
Feriekonto - Kari Nordmann med et kjempelangt etternavnsen
</span>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ html[data-visual-test] .dnb-drawer-list--scroll .dnb-drawer-list__options, .dnb-
display: inline-block;
margin-right: 0.5rem;
word-break: break-word;
white-space: nowrap;
font-size: inherit;
}
@media screen and (min-width: 40em) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@
display: inline-block;
margin-right: 0.5rem;
word-break: break-word;
white-space: nowrap;

font-size: inherit;
}
Expand Down

0 comments on commit c994df4

Please sign in to comment.