Update icon size and gap
This commit is contained in:
@@ -437,7 +437,7 @@ export const Button = React.forwardRef<View, ButtonProps>(
|
|||||||
paddingVertical: 14,
|
paddingVertical: 14,
|
||||||
paddingHorizontal: 24,
|
paddingHorizontal: 24,
|
||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
gap: 5,
|
gap: 4,
|
||||||
})
|
})
|
||||||
} else if (size === 'small') {
|
} else if (size === 'small') {
|
||||||
baseStyles.push({
|
baseStyles.push({
|
||||||
@@ -748,7 +748,7 @@ export function ButtonIcon({
|
|||||||
const iconSizeShorthand =
|
const iconSizeShorthand =
|
||||||
size ??
|
size ??
|
||||||
(({
|
(({
|
||||||
large: 'md',
|
large: 'sm',
|
||||||
small: 'sm',
|
small: 'sm',
|
||||||
tiny: 'xs',
|
tiny: 'xs',
|
||||||
}[buttonSize || 'small'] || 'sm') as Exclude<
|
}[buttonSize || 'small'] || 'sm') as Exclude<
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ function StorybookInner() {
|
|||||||
</Button>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
|
<Buttons />
|
||||||
<Toasts />
|
<Toasts />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
@@ -109,7 +110,6 @@ function StorybookInner() {
|
|||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
|
|
||||||
<Forms />
|
<Forms />
|
||||||
<Buttons />
|
|
||||||
<Typography />
|
<Typography />
|
||||||
<Spacing />
|
<Spacing />
|
||||||
<Shadows />
|
<Shadows />
|
||||||
|
|||||||
Reference in New Issue
Block a user