Skip to content

Commit

Permalink
feat: update ErrorState design
Browse files Browse the repository at this point in the history
  • Loading branch information
malangcat committed Jan 21, 2025
1 parent a546b86 commit 702df41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions docs/registry/ui/error-state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,14 @@ export const ErrorState = React.forwardRef<HTMLDivElement, ErrorStateProps>(
{...otherProps}
>
<Stack gap="s1">
<Text align="center" fontSize="s5" fontWeight="regular">
<Text align="center" textStyle="titleSmallDefault">
{title}
</Text>
<Text align="center" color="fg.neutralSubtle" fontSize="s4">
<Text
align="center"
color="fg.neutralSubtle"
textStyle="bodyMediumDefault"
>
{description}
</Text>
</Stack>
Expand Down
4 changes: 2 additions & 2 deletions examples/stackflow-spa/src/design-system/ui/error-state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ export const ErrorState = React.forwardRef<HTMLDivElement, ErrorStateProps>((pro
{...otherProps}
>
<Stack gap="s1">
<Text align="center" fontSize="s5" fontWeight="regular">
<Text align="center" textStyle="titleSmallDefault">
{title}
</Text>
<Text align="center" color="fg.neutralSubtle" fontSize="s4">
<Text align="center" color="fg.neutralSubtle" textStyle="bodyMediumDefault">
{description}
</Text>
</Stack>
Expand Down

0 comments on commit 702df41

Please sign in to comment.