Added textAlignRight style to Text
• Added: - textAlignRight style to Text
This commit is contained in:
parent
f97e43b173
commit
f7dc62460c
@ -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,
|
||||
|
@ -699,6 +699,7 @@ pre {
|
||||
}
|
||||
}
|
||||
|
||||
.textAlignRight { text-align: right; }
|
||||
.textAlignLeft { text-align: left; }
|
||||
.textAlignCenter { text-align: center; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user