Skip to content

Commit 49c1add

Browse files
committed
fix(suite-native): use 20px border radius instead of 24px
1 parent 019e734 commit 49c1add

File tree

7 files changed

+7
-9
lines changed

7 files changed

+7
-9
lines changed

Diff for: packages/theme/src/borders.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const borders = {
1717

1818
export type Borders = typeof borders;
1919

20-
type NativeRadiusValue = 4 | 8 | 12 | 16 | 20 | 24;
20+
type NativeRadiusValue = 4 | 8 | 12 | 16 | 20;
2121

2222
export const nativeBorders = {
2323
widths: {
@@ -31,7 +31,6 @@ export const nativeBorders = {
3131
r12: 12,
3232
r16: 16,
3333
r20: 20,
34-
r24: 24,
3534
round: 100, // Equivalent to 50% on the web
3635
} satisfies { [V in NativeRadiusValue as `r${V}`]: V } & { round: 100 },
3736
} as const;

Diff for: suite-native/atoms/src/Sheet/BottomSheet.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ const DEFAULT_INSET_BOTTOM = 50;
2929

3030
const sheetWrapperStyle = prepareNativeStyle<WrapperStyleProps>((utils, { insetBottom }) => ({
3131
backgroundColor: utils.colors.backgroundSurfaceElevation0,
32-
borderTopLeftRadius: utils.borders.radii.r24,
33-
borderTopRightRadius: utils.borders.radii.r24,
32+
borderTopLeftRadius: utils.borders.radii.r20,
33+
borderTopRightRadius: utils.borders.radii.r20,
3434
paddingBottom: Math.max(insetBottom, utils.spacings.sp16),
3535
maxHeight: '90%',
3636
}));

Diff for: suite-native/graph/src/components/GraphError.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type GraphErrorProps = {
1414
const errorIconStyle = prepareNativeStyle(({ borders, colors }) => ({
1515
width: 48,
1616
height: 48,
17-
borderRadius: borders.radii.r24,
17+
borderRadius: borders.radii.round,
1818
backgroundColor: colors.backgroundAlertYellowSubtleOnElevation1,
1919
borderColor: colors.backgroundAlertYellowSubtleOnElevation0,
2020
borderWidth: 3,

Diff for: suite-native/module-accounts-import/src/components/AccountImportOverviewCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { NetworkSymbol } from '@suite-common/wallet-config';
1515

1616
const assetCardStyle = prepareNativeStyle(utils => ({
1717
padding: utils.spacings.sp24,
18-
borderRadius: utils.borders.radii.r24,
18+
borderRadius: utils.borders.radii.r20,
1919
width: '100%',
2020
}));
2121

Diff for: suite-native/module-authorize-device/src/components/passphrase/PassphraseForm.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ type PassphraseFormProps = {
4444

4545
const formStyle = prepareNativeStyle(utils => ({
4646
backgroundColor: utils.colors.backgroundSurfaceElevation1,
47-
borderRadius: utils.borders.radii.r24,
4847
gap: utils.spacings.sp16,
4948
}));
5049

Diff for: suite-native/transactions/src/components/TransactionsEmptyState.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const cardStyle = prepareNativeStyle(utils => ({
1919
width: '100%',
2020
paddingHorizontal: utils.spacings.sp24,
2121
paddingVertical: utils.spacings.sp32,
22-
borderRadius: utils.borders.radii.r24,
22+
borderRadius: utils.borders.radii.r20,
2323
}));
2424

2525
const receiveButtonStyle = prepareNativeStyle(() => ({

Diff for: suite-native/video-assets/src/components/Video.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const videoContainer = prepareNativeStyle((_, { aspectRatio }: VideoStyleProps)
2525
const videoStyle = prepareNativeStyle((utils, { aspectRatio }: VideoStyleProps) => ({
2626
flex: 1,
2727
aspectRatio,
28-
borderRadius: utils.borders.radii.r24,
28+
borderRadius: utils.borders.radii.r20,
2929
}));
3030

3131
const activityIndicatorStyle = prepareNativeStyle(_ => ({

0 commit comments

Comments
 (0)