Skip to content

Commit 8ad79e1

Browse files
author
Ian Wensink
committed
feat(styled-components): fix select field ellipsis
1 parent c41bd90 commit 8ad79e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/SelectField/styled/wrapper.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default styled.div`
66
padding-right: 20px;
77
88
@media (min-width: 768px) {
9-
width: calc(${p => p.theme.inlineLabelWidth} + ${p => p.theme.inputWidth} + 20px);
9+
width: calc(${p => p.theme.inputWidth} * 1.3);
1010
}
1111
1212
${p => p.labelDisplay === 'inline' && `
@@ -17,9 +17,10 @@ export default styled.div`
1717
display: inline-block;
1818
}
1919
20-
& :global .Select-placeholder,
21-
& :global .Select--single > .Select-control .Select-value {
20+
& .Select-placeholder,
21+
& .Select--single > .Select-control .Select-value {
2222
max-width: calc(${p.theme.inputWidth} - 25px);
23+
overflow: hidden;
2324
}
2425
`}
2526

0 commit comments

Comments
 (0)