Skip to content

Commit 87f1c3a

Browse files
hannekeIan Wensink
authored andcommitted
fix(input): prevent inputs from extending beyond their container width
1 parent d958cbb commit 87f1c3a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Input/styled/wrapper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default styled.div`
99
1010
${p => p.labelDisplay === 'before' && `
1111
width: ${p.theme.inputWidth};
12+
max-width: 100%;
1213
1314
@media (min-width: 768px) {
1415
width: calc(${p.theme.inlineLabelWidth} + ${p.theme.inputWidth});

src/SelectField/styled/wrapper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ export default styled.div`
461461
position: relative;
462462
width: calc(${p => p.theme.inputWidth} + 20px);
463463
padding-right: 20px;
464+
max-width: calc(100% + 20px);
464465
465466
@media (min-width: 768px) {
466467
width: calc(${p => p.theme.inlineLabelWidth} + ${p => p.theme.inputWidth} + 20px);

0 commit comments

Comments
 (0)