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 = {
|
const ALIGNMENTS = {
|
||||||
center: 'center',
|
center: 'center',
|
||||||
left: 'left',
|
left: 'left',
|
||||||
|
right: 'right',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -97,6 +98,7 @@ class Text extends React.PureComponent {
|
|||||||
fw800: weight === WEIGHTS.extraBold,
|
fw800: weight === WEIGHTS.extraBold,
|
||||||
|
|
||||||
textAlignLeft: align === ALIGNMENTS.left,
|
textAlignLeft: align === ALIGNMENTS.left,
|
||||||
|
textAlignRight: align === ALIGNMENTS.right,
|
||||||
textAlignCenter: align === ALIGNMENTS.center,
|
textAlignCenter: align === ALIGNMENTS.center,
|
||||||
|
|
||||||
underline: hasUnderline,
|
underline: hasUnderline,
|
||||||
|
@ -699,6 +699,7 @@ pre {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.textAlignRight { text-align: right; }
|
||||||
.textAlignLeft { text-align: left; }
|
.textAlignLeft { text-align: left; }
|
||||||
.textAlignCenter { text-align: center; }
|
.textAlignCenter { text-align: center; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user