Skip to content
Permalink
Browse files

fix(InputLabels): Allow InputLabel and SelectInputLabel to truncate

  • Loading branch information...
HHogg committed Feb 17, 2019
1 parent 92cc657 commit 4eacfca2f3dc983fb5ce88e754e5b705fdd263db
Showing with 8 additions and 4 deletions.
  1. +1 −0 src/InputLabel/InputLabel.js
  2. +7 −4 src/SelectInputLabel/SelectInputLabel.js
@@ -30,6 +30,7 @@ export default class InputLabel extends Component {
disabled={ disabled }>
{ label && (
<Text
ellipsis
paddingHorizontal={ paddingHorizontal }
paddingVertical={ paddingVertical }
size="small"
@@ -28,10 +28,13 @@ export default class SelectInputLabel extends Component {
{ children }
</Flex>

<Flex grow>
<Text size="small" strong>
{ label }
</Text>
<Flex Component={ Text }
ellipsis
grow
shrink
size="small"
strong>
{ label }
</Flex>
</Flex>
);

0 comments on commit 4eacfca

Please sign in to comment.
You can’t perform that action at this time.