Skip to content

Commit

Permalink
Update FlexEnd class to more semantic AlignFieldBottom.
Browse files Browse the repository at this point in the history
  • Loading branch information
emarchak committed Jan 28, 2019
1 parent b2f6b85 commit 0858561
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/TextField/TextField.scss
Expand Up @@ -181,9 +181,9 @@ $stacking-order: (
color: color('red');
}

.FlexEnd {
.AlignFieldBottom {
align-self: flex-end;
margin-bottom: rem(4px);
margin-bottom: spacing(extra-tight);
}

.Spinner {
Expand Down
3 changes: 1 addition & 2 deletions src/components/TextField/TextField.tsx
Expand Up @@ -222,8 +222,7 @@ class TextField extends React.PureComponent<CombinedProps, State> {

const characterCountClassName = classNames(
styles.CharacterCount,
multiline && styles.FlexEnd,
// maxLength && characterCount === 0 && styles.MaxCharacters,
multiline && styles.AlignFieldBottom,
);

const characterCountText = !maxLength
Expand Down

0 comments on commit 0858561

Please sign in to comment.