✨(frontend) center error screen body
Added a new props on Text primitive to allow centering the text if needed. It's align the design with the mockup.
This commit is contained in:
committed by
aleb_the_flash
parent
01390b12fb
commit
ca3b1f0297
@@ -14,7 +14,7 @@ export const ErrorScreen = ({ title, body }: {
|
|||||||
<CenteredContent title={title || t('error.heading')} withBackButton>
|
<CenteredContent title={title || t('error.heading')} withBackButton>
|
||||||
{!!body && (
|
{!!body && (
|
||||||
<Center>
|
<Center>
|
||||||
<Text as="p" variant="h3">
|
<Text as="p" variant="h3" centered>
|
||||||
{body}
|
{body}
|
||||||
</Text>
|
</Text>
|
||||||
</Center>
|
</Center>
|
||||||
|
|||||||
@@ -45,6 +45,14 @@ export const text = cva({
|
|||||||
},
|
},
|
||||||
inherits: {},
|
inherits: {},
|
||||||
},
|
},
|
||||||
|
centered: {
|
||||||
|
true: {
|
||||||
|
textAlign: 'center',
|
||||||
|
},
|
||||||
|
false: {
|
||||||
|
textAlign: 'inherit',
|
||||||
|
},
|
||||||
|
},
|
||||||
bold: {
|
bold: {
|
||||||
true: {
|
true: {
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
|
|||||||
Reference in New Issue
Block a user