Added textAlignRight style to Text

• Added:
- textAlignRight style to Text
This commit is contained in:
mgabdev 2020-10-28 23:25:29 -05:00
parent f97e43b173
commit f7dc62460c
2 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,7 @@ const WEIGHTS = {
const ALIGNMENTS = {
center: 'center',
left: 'left',
right: 'right',
}
/**
@ -97,6 +98,7 @@ class Text extends React.PureComponent {
fw800: weight === WEIGHTS.extraBold,
textAlignLeft: align === ALIGNMENTS.left,
textAlignRight: align === ALIGNMENTS.right,
textAlignCenter: align === ALIGNMENTS.center,
underline: hasUnderline,

View File

@ -699,6 +699,7 @@ pre {
}
}
.textAlignRight { text-align: right; }
.textAlignLeft { text-align: left; }
.textAlignCenter { text-align: center; }