@mackin.com/styleguide 8.1.0 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -823,11 +823,11 @@ const Text = (props) => {
|
|
|
823
823
|
if (props.leftPad) {
|
|
824
824
|
style.paddingLeft = props.leftPad;
|
|
825
825
|
}
|
|
826
|
-
const styles = css.css({
|
|
826
|
+
const styles = css.css(getTagStyles(theme, tagChoice), {
|
|
827
827
|
userSelect: 'text',
|
|
828
828
|
label: 'Text',
|
|
829
829
|
fontSize: props.fontSize ? props.fontSize : undefined
|
|
830
|
-
},
|
|
830
|
+
}, alignStyles[(_a = props.align) !== null && _a !== void 0 ? _a : 'left'], props.smaller && { fontSize: theme.fonts.sizeSmall }, props.larger && { fontSize: theme.fonts.sizeLarge }, props.italics && { fontStyle: 'italic' }, props.ellipsis && {
|
|
831
831
|
overflow: 'hidden',
|
|
832
832
|
whiteSpace: 'nowrap',
|
|
833
833
|
textOverflow: 'ellipsis'
|