Skip to content

Commit 3afea43

Browse files
author
Enrique Moreno
committed
Fixed problem with long texts and paddings
1 parent 05e0d72 commit 3afea43

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/lib/src/dropdown/Dropdown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const DropdownTrigger = styled.button<{
5151
gap: var(--spacing-gap-s);
5252
width: 100%;
5353
height: var(--height-m);
54+
padding: var(--spacing-padding-none) var(--spacing-padding-xs);
5455
min-width: ${(props) => (props.label === "" ? "0px" : calculateWidth(props.margin, props.size))};
5556
border: 0;
5657
border-radius: var(--border-radius-s);

packages/lib/src/dropdown/DropdownMenuItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const DropdownMenuItemLabel = styled.span`
4242
font-family: var(--typography-font-family);
4343
font-size: var(--typography-label-l);
4444
font-weight: var(--typography-label-regular);
45+
white-space: nowrap;
4546
`;
4647

4748
const DropdownMenuItemIcon = styled.div`

0 commit comments

Comments
 (0)