Skip to content

Commit 7350339

Browse files
committed
Update textAlign prop
1 parent 0ea80da commit 7350339

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/api-reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ These tags are for displaying textual content.
5656
| Tag Name | Theme Props | Additional Props | Default Props |
5757
|---------------------|-------------------------------------------------------------------------------------------------------------|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
5858
| **`Text`** | [**Space**](./props#space)<br />[**Color**](./props#color)<br /> [**Typography**](./props#typography) || **color**: primary<br /> **fontFamily**: text<br />**fontSize**: text<br />**textAlign**: left<br />**margin**: textMargin |
59-
| **`FitText`** | [**Space**](./props#space)<br />[**Color**](./props#color)<br /> [**Typography**](./props#typography) || **color**: primary<br /> **fontFamily**: text<br />**fontSize**: text<br />**textAlign**: left<br />**margin**: textMargin |
59+
| **`FitText`** | [**Space**](./props#space)<br />[**Color**](./props#color)<br /> [**Typography**](./props#typography) || **color**: primary<br /> **fontFamily**: text<br />**fontSize**: text<br />**textAlign**: center<br />**margin**: textMargin |
6060
| **`Heading`** | [**Space**](./props#space)<br />[**Color**](./props#color)<br /> [**Typography**](./props#typography) || **color**: secondary<br /> **fontFamily**: header<br />**fontSize**: h1<br />**fontWeight**: bold<br />**textAlign**: center<br />**margin**: headerMargin |
6161
| **`Link`** | [**Space**](./props#space)<br />[**Color**](./props#color)<br /> [**Typography**](./props#typography)<br /> | **href**: PropTypes.string | **color**: quaternary<br /> **fontFamily**: text<br />**fontSize**: text<br />**textDecoration**: underline<br />**textAlign**: left<br />**margin**: textMargin |
6262
| **`Quote`** | [**Space**](./props#space)<br />[**Color**](./props#color)<br /> [**Typography**](./props#typography)<br /> || **color**: primary<br /> **fontFamily**: text<br />**fontSize**: text<br />**textAlign**: left<br />**borderLeft**: 1px solid secondary |

packages/spectacle/src/components/typography.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ const ScalableText = styled(
130130
`;
131131
ScalableText.defaultProps = {
132132
...Text.defaultProps,
133+
textAlign: 'center',
133134
scale: 1
134135
};
135136

0 commit comments

Comments
 (0)