Skip to content

Commit 9343d3d

Browse files
hannekeIan Wensink
authored andcommitted
fix(select): fix select input width for different label display options
1 parent 289ad63 commit 9343d3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SelectField/styled/wrapper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ export default styled.div`
463463
padding-right: 20px;
464464
465465
@media (min-width: 768px) {
466-
width: calc(${p => p.theme.inputWidth} * 1.3);
466+
width: calc(${p => p.theme.inlineLabelWidth} + ${p => p.theme.inputWidth} + 20px);
467467
}
468468
469469
${p => p.labelDisplay === 'inline' && `
@@ -472,6 +472,7 @@ export default styled.div`
472472
473473
@media (min-width: 768px) {
474474
display: inline-block;
475+
width: calc(${p.theme.inputWidth} * 1.3);
475476
}
476477
477478
& .Select-placeholder,

0 commit comments

Comments
 (0)