Skip to content

Commit

Permalink
Add screenshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltaranto committed Nov 22, 2024
1 parent fdca66c commit f781c76
Showing 1 changed file with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -478,5 +478,57 @@ export const screenshots: ComponentScreenshot = {
</Stack>
),
},
{
label:
'Vertically centered labels in containers that stretch elements to fill',
Example: () => (
<Stack space="small">
<Box
display="flex"
gap="small"
style={{ alignItems: 'stretch', width: 300, maxWidth: '100%' }}
>
<Button>Non elit</Button>
<Button>Non elit do do incididunt nostrud</Button>
</Box>
<Box
display="flex"
gap="small"
style={{ alignItems: 'stretch', width: 300, maxWidth: '100%' }}
>
<Button icon={<IconWorkExperience />} iconPosition="leading">
Non elit
</Button>
<Button icon={<IconWorkExperience />} iconPosition="leading">
Non elit do do incididunt nostrud
</Button>
</Box>
<Box
display="flex"
gap="small"
style={{ alignItems: 'stretch', width: 300, maxWidth: '100%' }}
>
<Button icon={<IconWorkExperience />} iconPosition="leading">
Non elit
</Button>
<Button icon={<IconWorkExperience />} iconPosition="leading">
Non elit do do incididunt nostrud
</Button>
</Box>
<Box
display="flex"
gap="small"
style={{ alignItems: 'stretch', width: 300, maxWidth: '100%' }}
>
<Button icon={<IconWorkExperience />} iconPosition="trailing">
Non elit
</Button>
<Button icon={<IconWorkExperience />} iconPosition="trailing">
Non elit do do incididunt nostrud
</Button>
</Box>
</Stack>
),
},
],
};

0 comments on commit f781c76

Please sign in to comment.