Skip to content

Commit 7aa93b8

Browse files
committed
LIVE-3203 - LLM - market backarrow button touch highlight color issue
1 parent 4a89144 commit 7aa93b8

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.changeset/shiny-pens-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ledgerhq/native-ui": patch
3+
---
4+
5+
Button component uses correct TouchableOpacity instead of Highlight

.changeset/thin-tomatoes-poke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"live-mobile": patch
3+
---
4+
5+
LLM - fixes issue on market header button touch highlight color

libs/ui/packages/native/src/components/cta/Button/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React, { useCallback, useState, useMemo } from "react";
22
import styled, { useTheme } from "styled-components/native";
33

4-
import { ActivityIndicator, TouchableHighlight, TouchableHighlightProps, View } from "react-native";
4+
import { ActivityIndicator, TouchableOpacity, TouchableOpacityProps, View } from "react-native";
55
import { buttonSizeStyle, getButtonColorStyle } from "../../cta/Button/getButtonStyle";
66
import { ctaIconSize, ctaTextType } from "../../cta/getCtaStyle";
77
import Text from "../../Text";
88
import { Icon as IconComponent } from "../../Icon";
99
import baseStyled, { BaseStyledProps } from "../../styled";
1010

11-
export type ButtonProps = TouchableHighlightProps &
11+
export type ButtonProps = TouchableOpacityProps &
1212
BaseStyledProps & {
1313
Icon?: React.ComponentType<{ size: number; color: string }> | null;
1414
iconName?: string;
@@ -31,7 +31,7 @@ const IconContainer = styled.View<{
3131
p.iconButton ? "" : p.iconPosition === "left" ? `margin-right: 10px;` : `margin-left: 10px;`}
3232
`;
3333

34-
export const Base = baseStyled(TouchableHighlight).attrs<ButtonProps>((p) => ({
34+
export const Base = baseStyled(TouchableOpacity).attrs<ButtonProps>((p) => ({
3535
...getButtonColorStyle(p.theme.colors, p).button,
3636
// Avoid conflict with styled-system's size property by nulling size and renaming it
3737
size: undefined,

0 commit comments

Comments
 (0)