From a7af0c840a86a937890a7b94db96f60de9dbabce Mon Sep 17 00:00:00 2001 From: joseio Date: Tue, 6 Feb 2024 17:41:04 -0500 Subject: [PATCH] fix: tertiary button border opacity Tertiary button shifted page by 1 pixel onPress. Changing border opacity. --- src/components/Button/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index a1e8567..2e1012b 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -95,13 +95,10 @@ export class Button extends React.Component { } private getStateStyle = (state: PressableStateCallbackType): StyleProp => { - const { kind } = this.props; - const keepBorder = ['high-contrast', 'high-contrast-inverse'].includes(kind as string); - return state.pressed ? { backgroundColor: this.getBackgroundColor(true), - borderWidth: keepBorder ? 1 : 0, + borderColor: 'rgba(0, 0, 0, 0)', } : undefined; };