Skip to content

Commit

Permalink
chore: display flex internal label of button
Browse files Browse the repository at this point in the history
  • Loading branch information
lauramarinab committed May 16, 2023
1 parent 10f146d commit ac25af5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/design-system/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ function App() {
<IconButton onClick={() => console.log('sono disabilitato')}>
<EditIcon />
</IconButton>
<Button onClick={() => console.log('hello')}>Hello!</Button>
<Button onClick={() => console.log('hello')}>
<EditIcon /> Hello!
</Button>
</Box>
<Box padding="l">
<Breadcrumbs>
Expand Down
3 changes: 3 additions & 0 deletions packages/design-system/src/components/Button/Button.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export const labelStyle = style({
visibility: 'visible',
transition: 'visibility 250ms, opacity 150ms',
opacity: 1,
display: 'flex',
alignItems: 'center',
gap: spacings.s,
selectors: {
[`${baseStyle}[data-loading=true] &`]: {
visibility: 'hidden',
Expand Down

0 comments on commit ac25af5

Please sign in to comment.