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 1420918
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 @@ -174,16 +174,16 @@ $stacking-order: (
@include text-emphasis-subdued;
z-index: z-index(contents, $stacking-order);
margin-right: $backdrop-horizontal-spacing;
line-height: control-height();
pointer-events: none;
}

.MaxCharacters {
color: color('red');
}

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

.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 1420918

Please sign in to comment.