Skip to content

Commit faa5b58

Browse files
committed
fix(ui-buttons): fix for AI secondary button visual glitch
1 parent c827833 commit faa5b58

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/ui-buttons/src/BaseButton/styles.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ const generateStyle = (
361361
touchAction: 'manipulation',
362362
// This sets the focus ring's border radius displayed by the `View`
363363
borderRadius: componentTheme.borderRadius,
364+
// Prevents the button from being stretched vertically by a flex parent
365+
// Without this, flex containers with `align-items: stretch` (the default)
366+
// would force the button to fill the parent's height
367+
alignSelf: 'center',
368+
height: 'fit-content',
364369

365370
'&::-moz-focus-inner': {
366371
border: '0' /* removes default dotted focus outline in Firefox */

0 commit comments

Comments
 (0)