We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c827833 commit faa5b58Copy full SHA for faa5b58
packages/ui-buttons/src/BaseButton/styles.ts
@@ -361,6 +361,11 @@ const generateStyle = (
361
touchAction: 'manipulation',
362
// This sets the focus ring's border radius displayed by the `View`
363
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',
369
370
'&::-moz-focus-inner': {
371
border: '0' /* removes default dotted focus outline in Firefox */
0 commit comments