Skip to content

Commit

Permalink
Button: Ensure label is vertically centered
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltaranto committed Nov 21, 2024
1 parent 11ceff9 commit fdca66c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .changeset/lemon-fishes-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'braid-design-system': patch
---

---
updated:
- Button
---

**Button:** Ensure label is vertically centered

Fixes a bug where a `Button` label would not be vertically centered inside containers that stretch elements to fill the available space, such as `Tiles`.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,9 @@ export const useButtonStyles = ({
borderRadius: radius,
width: 'full',
position: 'relative',
display: 'block',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
transform: { active: 'touchable' },
transition: 'touchable',
outline: 'none',
Expand Down

0 comments on commit fdca66c

Please sign in to comment.