From 98949eca7e0d5a0815d9ced80a6f5e1ac9cc5f3b Mon Sep 17 00:00:00 2001 From: pixeltweaker <329580667+pixeltweaker@users.noreply.github.com> Date: Tue, 17 Nov 2026 09:20:09 -0500 Subject: [PATCH 1/7] Accessibility: Fix - text and border contrast for inputs, alerts, checkbox and cards --- src/components/alert-box/AlertBox.tsx | 12 ++++++------ src/components/button/Button.tsx | 3 ++- src/components/chain-search/ChainSearch.tsx | 10 ++++++++-- src/components/checkbox/Checkbox.spec.tsx | 6 +++--- src/components/checkbox/Checkbox.tsx | 6 +++--- src/components/form/BoxInput.tsx | 8 +++++--- .../modal/chain-selector/ChainSelector.tsx | 3 ++- src/components/styled/Containers.tsx | 13 ++++--------- src/components/toggle-switch/ToggleSwitch.tsx | 4 ++-- src/constants/TransactionIcons.tsx | 3 ++- .../components/PaymentMethodModal.tsx | 3 ++- .../components/MoonpaySelectCardModal.tsx | 4 ++-- .../components/OfferSelectorModal.tsx | 5 +++-- .../SwapCryptoOfferSelectorModal.tsx | 2 +- .../tabs/home/components/AssetsSearchPill.tsx | 9 +++++++-- .../screens/WalletConnectConnections.tsx | 4 ++-- .../screens/WalletConnectIntro.tsx | 4 ++-- .../CurrencySelectionSearchInput.tsx | 4 ++-- .../wallet/components/SendToAddress.tsx | 4 ++-- .../wallet/components/SendToContact.tsx | 4 ++-- .../wallet/screens/AccountDetails.tsx | 19 ++++++++++++------- src/navigation/wallet/screens/send/SendTo.tsx | 3 ++- src/styles/colors.ts | 16 ++++++++++++++++ 23 files changed, 92 insertions(+), 57 deletions(-) diff --git a/src/components/alert-box/AlertBox.tsx b/src/components/alert-box/AlertBox.tsx index 635581f550..dd121d46d2 100644 --- a/src/components/alert-box/AlertBox.tsx +++ b/src/components/alert-box/AlertBox.tsx @@ -4,11 +4,11 @@ import { Caution, Caution25, NeutralSlate, - Slate, - Success, + SlateDark, Success25, - Warning, + SuccessDark, Warning25, + WarningDark, } from '../../styles/colors'; import {ScreenGutter} from '../styled/Containers'; @@ -39,15 +39,15 @@ const palette: AlertPalette = { }, success: { background: Success25, - text: Success, + text: SuccessDark, }, warning: { background: Warning25, - text: Warning, + text: WarningDark, }, default: { background: NeutralSlate, - text: Slate, + text: SlateDark, }, }; diff --git a/src/components/button/Button.tsx b/src/components/button/Button.tsx index 4360a9880f..5bd7b7e97b 100644 --- a/src/components/button/Button.tsx +++ b/src/components/button/Button.tsx @@ -26,6 +26,7 @@ import { SlateDark, Success, White, + Caution70, } from '../../styles/colors'; import Haptic from '../haptic-feedback/haptic'; import {ActiveOpacity} from '../styled/Containers'; @@ -273,7 +274,7 @@ const getButtonTextColor = ({ ? Caution50 : Caution60 : theme.dark - ? Caution60 + ? Caution70 : White; } return White; diff --git a/src/components/chain-search/ChainSearch.tsx b/src/components/chain-search/ChainSearch.tsx index fe1da42e5b..f62078d7fc 100644 --- a/src/components/chain-search/ChainSearch.tsx +++ b/src/components/chain-search/ChainSearch.tsx @@ -6,7 +6,13 @@ import { SearchRoundInput, } from '../../components/styled/Containers'; import {groupBy} from '../../utils/array'; -import {Action, LightBlue, Slate, White} from '../../styles/colors'; +import { + Action, + LightBlue, + Slate, + White, + Placeholder, +} from '../../styles/colors'; import {BaseText} from '../../components/styled/Text'; import SearchSvg from '../../../assets/img/search.svg'; import ChevronDownSvgLight from '../../../assets/img/chevron-down-lightmode.svg'; @@ -551,7 +557,7 @@ const SearchComponent = ({ diff --git a/src/components/checkbox/Checkbox.spec.tsx b/src/components/checkbox/Checkbox.spec.tsx index 861232c607..6bf7f17508 100644 --- a/src/components/checkbox/Checkbox.spec.tsx +++ b/src/components/checkbox/Checkbox.spec.tsx @@ -1,7 +1,7 @@ import React from 'react'; import Checkbox from './Checkbox'; import {fireEvent, render} from '@test/render'; -import {Action} from '../../styles/colors'; +import {Action, SlateDark} from '../../styles/colors'; it('renders correctly', async () => { const mockFn = jest.fn(); @@ -9,8 +9,8 @@ it('renders correctly', async () => { , ); const checkbox = await getByTestId('checkbox'); - // On light theme (used by test render), unchecked border is #E5E5F2 - expect(getByTestId('checkboxBorder')).toHaveStyle({borderColor: '#E5E5F2'}); + // On light theme (used by test render), unchecked border is SlateDark (8.6:1 on White) + expect(getByTestId('checkboxBorder')).toHaveStyle({borderColor: SlateDark}); fireEvent(checkbox, 'press'); expect(mockFn).toHaveBeenCalled(); diff --git a/src/components/checkbox/Checkbox.tsx b/src/components/checkbox/Checkbox.tsx index 6db38cfe99..53a018317b 100644 --- a/src/components/checkbox/Checkbox.tsx +++ b/src/components/checkbox/Checkbox.tsx @@ -3,7 +3,7 @@ import {useTranslation} from 'react-i18next'; import {View} from 'react-native'; import {RoundedCheckbox} from 'react-native-rounded-checkbox'; import Check from '../../../assets/img/check.svg'; -import {Action, SlateDark} from '../../styles/colors'; +import {Action, SlateDark, Slate} from '../../styles/colors'; import {useTheme} from '../../contexts'; interface Props { @@ -36,8 +36,8 @@ const Border: React.FC> = ({ : checked ? Action : theme?.dark - ? SlateDark - : '#E5E5F2'; + ? Slate + : SlateDark; return ( { + const theme = useTheme(); const isPassword = type === 'password'; const isSearch = type === 'search'; const [isFocused, setIsFocused] = useState(false); @@ -315,7 +317,7 @@ const BoxInput = React.forwardRef< diff --git a/src/components/styled/Containers.tsx b/src/components/styled/Containers.tsx index e06f04ffbd..42ee6b5e9f 100644 --- a/src/components/styled/Containers.tsx +++ b/src/components/styled/Containers.tsx @@ -241,7 +241,7 @@ const styles = StyleSheet.create({ importTextInput: { minHeight: 80, borderWidth: 0.75, - borderColor: Slate, + borderColor: LuckySevens, borderTopRightRadius: 4, borderTopLeftRadius: 4, textAlignVertical: 'top', @@ -277,7 +277,7 @@ const styles = StyleSheet.create({ searchContainer: { flexDirection: 'row', borderWidth: 1, - borderColor: '#9ba3ae', + borderColor: LuckySevens, alignItems: 'center', borderTopRightRadius: 4, borderTopLeftRadius: 4, @@ -314,7 +314,7 @@ const styles = StyleSheet.create({ }, copyToClipboardContainer: { borderWidth: 1, - borderColor: '#9ba3ae', + borderColor: LuckySevens, borderRadius: 4, paddingVertical: 8, paddingHorizontal: 10, @@ -1065,15 +1065,10 @@ export const SearchRoundContainer = React.forwardRef< View, React.ComponentProps >(({style, ...rest}, ref) => { - const theme = useTheme(); return ( ); diff --git a/src/components/toggle-switch/ToggleSwitch.tsx b/src/components/toggle-switch/ToggleSwitch.tsx index 4828b84d86..1f6b5f7791 100644 --- a/src/components/toggle-switch/ToggleSwitch.tsx +++ b/src/components/toggle-switch/ToggleSwitch.tsx @@ -1,6 +1,6 @@ import React from 'react'; import {StyleSheet, Switch, View} from 'react-native'; -import {Action, NeutralSlate, White} from '../../styles/colors'; +import {Action, LuckySevens, White} from '../../styles/colors'; interface Props { onChange: ((value: boolean) => any) | undefined; @@ -21,7 +21,7 @@ const ToggleSwitch = ({onChange, isEnabled, isDisabled}: Props) => { - + ), diff --git a/src/navigation/services/buy-crypto/components/PaymentMethodModal.tsx b/src/navigation/services/buy-crypto/components/PaymentMethodModal.tsx index d8390d04fb..20888f901e 100644 --- a/src/navigation/services/buy-crypto/components/PaymentMethodModal.tsx +++ b/src/navigation/services/buy-crypto/components/PaymentMethodModal.tsx @@ -24,6 +24,7 @@ import { LightBlack, SlateDark, White, + Slate30, } from '../../../../styles/colors'; import {useAppDispatch, useAppSelector} from '../../../../utils/hooks'; import {useTranslation} from 'react-i18next'; @@ -144,7 +145,7 @@ const PaymentMethodCard: React.FC< style={[ styles.paymentMethodCard, { - borderColor: selected ? Action : theme.dark ? SlateDark : '#e6e8ec', + borderColor: selected ? Action : theme.dark ? SlateDark : Slate30, backgroundColor: selected ? '#2240C440' : 'transparent', }, style, diff --git a/src/navigation/services/components/MoonpaySelectCardModal.tsx b/src/navigation/services/components/MoonpaySelectCardModal.tsx index 3cbf54a5d0..fdef2da6a4 100644 --- a/src/navigation/services/components/MoonpaySelectCardModal.tsx +++ b/src/navigation/services/components/MoonpaySelectCardModal.tsx @@ -114,7 +114,7 @@ function MoonpaySelectCardModal({ style={[ styles.cardRow, { - borderColor: selected ? Action : dark ? SlateDark : '#e6e8ec', + borderColor: selected ? Action : dark ? SlateDark : Slate30, opacity: disabled ? 0.5 : 1, }, ]} @@ -159,7 +159,7 @@ function MoonpaySelectCardModal({ {t('Add a new card')} diff --git a/src/navigation/services/components/OfferSelectorModal.tsx b/src/navigation/services/components/OfferSelectorModal.tsx index 326c435fae..7191e0bb06 100644 --- a/src/navigation/services/components/OfferSelectorModal.tsx +++ b/src/navigation/services/components/OfferSelectorModal.tsx @@ -25,6 +25,7 @@ import { Slate30, Success25, LightBlue, + Caution, } from '../../../styles/colors'; import {formatFiatAmount} from '../../../utils/helper-methods'; import {BuyCryptoExchangeKey} from '../buy-crypto/utils/buy-crypto-utils'; @@ -226,7 +227,7 @@ const styles = StyleSheet.create({ marginTop: 20, }, offerDataWarningMsg: { - color: '#df5264', + color: Caution, marginRight: 10, fontSize: 12, }, @@ -432,7 +433,7 @@ const BuyCryptoExpandibleCard: React.FC< : SlateDark : selected ? Action - : '#e6e8ec', + : Slate30, backgroundColor: theme.dark ? selected ? '#2240C440' diff --git a/src/navigation/services/swap-crypto/components/SwapCryptoOfferSelectorModal.tsx b/src/navigation/services/swap-crypto/components/SwapCryptoOfferSelectorModal.tsx index 432e374706..fe1860b792 100644 --- a/src/navigation/services/swap-crypto/components/SwapCryptoOfferSelectorModal.tsx +++ b/src/navigation/services/swap-crypto/components/SwapCryptoOfferSelectorModal.tsx @@ -310,7 +310,7 @@ const SwapCryptoExpandibleCard: React.FC< : SlateDark : selected ? Action - : '#e6e8ec', + : Slate30, backgroundColor: theme.dark ? selected ? '#2240C440' diff --git a/src/navigation/tabs/home/components/AssetsSearchPill.tsx b/src/navigation/tabs/home/components/AssetsSearchPill.tsx index f8619a758c..2b1034fedd 100644 --- a/src/navigation/tabs/home/components/AssetsSearchPill.tsx +++ b/src/navigation/tabs/home/components/AssetsSearchPill.tsx @@ -3,7 +3,12 @@ import {useTranslation} from 'react-i18next'; import {StyleSheet, TextInput, View} from 'react-native'; import {useTheme} from '../../../../contexts'; import SearchSvg from '../../../../../assets/img/search.svg'; -import {Slate30, SlateDark, White} from '../../../../styles/colors'; +import { + Slate30, + SlateDark, + White, + Placeholder, +} from '../../../../styles/colors'; const styles = StyleSheet.create({ container: { @@ -85,7 +90,7 @@ const AssetsSearchPill: React.FC = ({ value={value} onChangeText={onChangeText} placeholder={placeholder} - placeholderTextColor={'#6F7782'} + placeholderTextColor={Placeholder} testID="assets-search-input" accessibilityLabel={t('Search assets')} /> diff --git a/src/navigation/wallet-connect/screens/WalletConnectConnections.tsx b/src/navigation/wallet-connect/screens/WalletConnectConnections.tsx index e4a0581256..c6bff1d413 100644 --- a/src/navigation/wallet-connect/screens/WalletConnectConnections.tsx +++ b/src/navigation/wallet-connect/screens/WalletConnectConnections.tsx @@ -11,7 +11,7 @@ import { InfoTitle, TextAlign, } from '../../../components/styled/Text'; -import {NeutralSlate, SlateDark} from '../../../styles/colors'; +import {NeutralSlate, SlateDark, Placeholder} from '../../../styles/colors'; import GhostSvg from '../../../../assets/img/ghost-straight-face.svg'; import AddConnection from '../../../components/add/Add'; import {HeaderTitle} from '../styled/WalletConnectText'; @@ -141,7 +141,7 @@ const WalletConnectConnections = () => { const defaultAltCurrency = useAppSelector(({APP}) => APP.defaultAltCurrency); const [searchVal, setSearchVal] = useState(''); - const placeHolderTextColor = theme.dark ? NeutralSlate : '#6F7782'; + const placeHolderTextColor = theme.dark ? NeutralSlate : Placeholder; const selectedChainFilterOption = useAppSelector(({APP}) => ignoreGlobalListContextList.includes('walletconnect') diff --git a/src/navigation/wallet-connect/screens/WalletConnectIntro.tsx b/src/navigation/wallet-connect/screens/WalletConnectIntro.tsx index 374f2d1607..ea5c802cc0 100644 --- a/src/navigation/wallet-connect/screens/WalletConnectIntro.tsx +++ b/src/navigation/wallet-connect/screens/WalletConnectIntro.tsx @@ -30,7 +30,7 @@ import { SearchInput, } from '../../../components/styled/Containers'; import ScanSvg from '../../../../assets/img/onboarding/scan.svg'; -import {NeutralSlate} from '../../../styles/colors'; +import {NeutralSlate, Placeholder} from '../../../styles/colors'; import {useOngoingProcess} from '../../../contexts'; export type WalletConnectIntroParamList = { @@ -50,7 +50,7 @@ const WalletConnectIntro = () => { const navigation = useNavigation(); const {showOngoingProcess, hideOngoingProcess} = useOngoingProcess(); const theme = useTheme(); - const placeHolderTextColor = theme.dark ? NeutralSlate : '#6F7782'; + const placeHolderTextColor = theme.dark ? NeutralSlate : Placeholder; // version 2 // value unused; selector kept so the screen still re-renders when the proposal changes diff --git a/src/navigation/wallet/components/CurrencySelectionSearchInput.tsx b/src/navigation/wallet/components/CurrencySelectionSearchInput.tsx index 3c1e98225c..bf89d6590c 100644 --- a/src/navigation/wallet/components/CurrencySelectionSearchInput.tsx +++ b/src/navigation/wallet/components/CurrencySelectionSearchInput.tsx @@ -5,7 +5,7 @@ import {useTheme} from '../../../contexts'; import SearchIcon from '../../../../assets/img/search.svg'; import BoxInput, {IconContainer} from '../../../components/form/BoxInput'; import {ActiveOpacity} from '../../../components/styled/Containers'; -import {NeutralSlate} from '../../../styles/colors'; +import {NeutralSlate, Placeholder} from '../../../styles/colors'; import WalletIcons from './WalletIcons'; interface CurrencySelectionSearchInputProps { @@ -29,7 +29,7 @@ const CurrencySelectionSearchInput: React.FC< // eslint-disable-next-line react-hooks/refs -- see 'use no memo' above queryRef.current = query; - const placeHolderTextColor = theme.dark ? NeutralSlate : '#6F7782'; + const placeHolderTextColor = theme.dark ? NeutralSlate : Placeholder; const debouncedOnSearch = useMemo(() => { const fn = (text: string) => { diff --git a/src/navigation/wallet/components/SendToAddress.tsx b/src/navigation/wallet/components/SendToAddress.tsx index 03b56a5e83..5db8c818c8 100644 --- a/src/navigation/wallet/components/SendToAddress.tsx +++ b/src/navigation/wallet/components/SendToAddress.tsx @@ -18,7 +18,7 @@ import { import Button from '../../../components/button/Button'; import {useTheme} from '../../../contexts'; import {BaseText, H5, SubText} from '../../../components/styled/Text'; -import {Caution, NeutralSlate} from '../../../styles/colors'; +import {Caution, NeutralSlate, Placeholder} from '../../../styles/colors'; import {useNavigation, useRoute} from '@react-navigation/native'; import {RouteProp} from '@react-navigation/core'; import {WalletGroupParamList} from '../WalletGroup'; @@ -105,7 +105,7 @@ const SendToAddress = () => { const theme = useTheme(); const logger = useLogger(); const {showOngoingProcess, hideOngoingProcess} = useOngoingProcess(); - const placeHolderTextColor = theme.dark ? NeutralSlate : '#6F7782'; + const placeHolderTextColor = theme.dark ? NeutralSlate : Placeholder; const [searchInput, setSearchInput] = useState(''); const [walletSearchInput, setWalletSearchInput] = useState(''); const [errorMessage, setErrorMessage] = useState(''); diff --git a/src/navigation/wallet/components/SendToContact.tsx b/src/navigation/wallet/components/SendToContact.tsx index 44d77884ee..3d0d02b2fe 100644 --- a/src/navigation/wallet/components/SendToContact.tsx +++ b/src/navigation/wallet/components/SendToContact.tsx @@ -8,7 +8,7 @@ import { import Button from '../../../components/button/Button'; import {useTheme} from '../../../contexts'; import {H5, SubText} from '../../../components/styled/Text'; -import {NeutralSlate} from '../../../styles/colors'; +import {NeutralSlate, Placeholder} from '../../../styles/colors'; import {useRoute} from '@react-navigation/native'; import {RouteProp} from '@react-navigation/core'; import {WalletGroupParamList} from '../WalletGroup'; @@ -46,7 +46,7 @@ const SendToContact = () => { const {t} = useTranslation(); const theme = useTheme(); const allContacts = useAppSelector(({CONTACT}: RootState) => CONTACT.list); - const placeHolderTextColor = theme.dark ? NeutralSlate : '#6F7782'; + const placeHolderTextColor = theme.dark ? NeutralSlate : Placeholder; const [searchInput, setSearchInput] = useState(''); const route = useRoute>(); const {wallet, context} = route.params; diff --git a/src/navigation/wallet/screens/AccountDetails.tsx b/src/navigation/wallet/screens/AccountDetails.tsx index 558363b3ec..6e548d8ffc 100644 --- a/src/navigation/wallet/screens/AccountDetails.tsx +++ b/src/navigation/wallet/screens/AccountDetails.tsx @@ -89,7 +89,7 @@ import { } from '../../../utils/helper-methods'; import LinkingButtons from '../../tabs/home/components/LinkingButtons'; import {Analytics} from '../../../store/analytics/analytics.effects'; -import {Air, LightBlack, SlateDark, White} from '../../../styles/colors'; +import {Air, LightBlack, SlateDark, White, Slate} from '../../../styles/colors'; import { createMultipleWallets, getActiveWalletStoreInitPromise, @@ -398,9 +398,14 @@ const WalletListHeader: React.FC = ({ const WalletListHeaderLabel: React.FC<{ isActive: boolean; children?: React.ReactNode; -}> = ({isActive, children}) => ( - {children} -); +}> = ({isActive, children}) => { + const theme = useTheme(); + return ( +
+ {children} +
+ ); +}; const CopyToClipboardContainer: React.FC<{children?: React.ReactNode}> = ({ children, @@ -2144,7 +2149,7 @@ const AccountDetails: React.FC = ({route}) => { setActiveTab('wallets'); }}> -
{t('Wallets')}
+ {t('Wallets')}
{showPortfolioValue ? ( @@ -2157,7 +2162,7 @@ const AccountDetails: React.FC = ({route}) => { setActiveTab('allocation'); }}> -
{t('Allocation')}
+ {t('Allocation')}
) : null} @@ -2172,7 +2177,7 @@ const AccountDetails: React.FC = ({route}) => { loadInitialHistory(); }}> -
{t('Activity')}
+ {t('Activity')}
diff --git a/src/navigation/wallet/screens/send/SendTo.tsx b/src/navigation/wallet/screens/send/SendTo.tsx index 3b9954d90d..ea02dcedbc 100644 --- a/src/navigation/wallet/screens/send/SendTo.tsx +++ b/src/navigation/wallet/screens/send/SendTo.tsx @@ -33,6 +33,7 @@ import { NeutralSlate, SlateDark, White, + Placeholder, } from '../../../../styles/colors'; import {RouteProp} from '@react-navigation/core'; import {WalletGroupParamList} from '../../WalletGroup'; @@ -248,7 +249,7 @@ const SendToContent = ({wallet}: {wallet: Wallet}) => { ); const hideAllBalances = useAppSelector(({APP}) => APP.hideAllBalances); const theme = useTheme(); - const placeHolderTextColor = theme.dark ? NeutralSlate : '#6F7782'; + const placeHolderTextColor = theme.dark ? NeutralSlate : Placeholder; const [searchInput, setSearchInput] = useState(''); const [walletSearchInput, setWalletSearchInput] = useState(''); const [showWalletOptions, setShowWalletOptions] = useState(false); diff --git a/src/styles/colors.ts b/src/styles/colors.ts index 03774f45f1..244d3366e8 100644 --- a/src/styles/colors.ts +++ b/src/styles/colors.ts @@ -6,6 +6,10 @@ export const Action = '#2240C4'; /* Secondary */ export const SlateDark = '#434D5A'; export const LuckySevens = '#777777'; +/** + * Placeholder text on light backgrounds (4.53:1 on White). + */ +export const Placeholder = '#6F7782'; export const Slate = '#9BA3AE'; export const NeutralSlate = '#F5F7F8'; export const Air = '#EBEDF8'; @@ -31,14 +35,26 @@ export const Caution = '#B51B16'; export const Caution50 = '#FDAFBB'; export const Caution25 = '#FFD8DE'; export const Caution60 = '#ad1313'; +/** + * Readable danger text on Caution50 fills (4.73:1). + */ +export const Caution70 = '#9E1111'; export const Success = '#2fcfa4'; export const Success50 = '#97E7D1'; export const Success25 = '#CBF3E8'; +/** + * Readable success text on light and Success25 fills (4.79:1 on Success25). + */ +export const SuccessDark = '#0B754A'; export const Warning = '#AC6304'; export const Warning75 = '#FDC67F'; export const Warning25 = '#FEECD4'; +/** + * Readable warning text on Warning25 fills (5.03:1). + */ +export const WarningDark = '#955603'; export const Disabled = '#edeef0'; export const DisabledDark = '#3c3c3c'; From e2ef53d4ed6add49f91ae56153169307acf9a951 Mon Sep 17 00:00:00 2001 From: pixeltweaker <329580667+pixeltweaker@users.noreply.github.com> Date: Tue, 17 Nov 2026 09:20:23 -0500 Subject: [PATCH 2/7] Accessibility: Fix - readable secondary text in dark mode --- .../modal/ongoing-process/OngoingProcess.tsx | 6 +++--- .../virtual-keyboard/VirtualKeyboard.tsx | 17 ++++++++++------- .../externalServicesOfferSelector.tsx | 2 +- .../services/screens/BuyAndSellRoot.tsx | 2 +- .../tabs/shop/components/GiftCardTerms.tsx | 16 ++++++++++------ src/themes/bitpay.ts | 4 ++-- 6 files changed, 27 insertions(+), 20 deletions(-) diff --git a/src/components/modal/ongoing-process/OngoingProcess.tsx b/src/components/modal/ongoing-process/OngoingProcess.tsx index ce7bc48dd2..0304267b38 100644 --- a/src/components/modal/ongoing-process/OngoingProcess.tsx +++ b/src/components/modal/ongoing-process/OngoingProcess.tsx @@ -7,7 +7,7 @@ import { View, } from 'react-native'; import {useTheme} from '../../../contexts'; -import {LightBlack, SlateDark, White} from '../../../styles/colors'; +import {LightBlack, White} from '../../../styles/colors'; import {useAppSelector} from '../../../utils/hooks'; import {BlurContainer} from '../../blur/Blur'; import {BaseText} from '../../styled/Text'; @@ -61,13 +61,13 @@ const OnGoingProcessModalContent: React.FC = React.memo(() => { {backgroundColor: theme.dark ? LightBlack : White}, ]}> - + {message}
), - [message, theme.dark], + [message, theme.dark, theme.colors.description], ); return ( diff --git a/src/components/virtual-keyboard/VirtualKeyboard.tsx b/src/components/virtual-keyboard/VirtualKeyboard.tsx index b0d56c533f..1a02cc913f 100644 --- a/src/components/virtual-keyboard/VirtualKeyboard.tsx +++ b/src/components/virtual-keyboard/VirtualKeyboard.tsx @@ -122,13 +122,16 @@ const CellValue: React.FC< const CellLetter: React.FC> = ({ style, ...rest -}) => ( - -); +}) => { + const theme = useTheme(); + return ( + + ); +}; const SymbolContainer: React.FC< SymbolContainerProps & React.ComponentProps diff --git a/src/navigation/services/components/externalServicesOfferSelector.tsx b/src/navigation/services/components/externalServicesOfferSelector.tsx index 62e33cb8c7..bcc9df0c8c 100644 --- a/src/navigation/services/components/externalServicesOfferSelector.tsx +++ b/src/navigation/services/components/externalServicesOfferSelector.tsx @@ -3324,7 +3324,7 @@ const ExternalServicesOfferSelector: React.FC< )} {offerWarnMsg ? null : selectedOfferLoading ? ( - + ) : selectedOffer ? ( diff --git a/src/navigation/services/screens/BuyAndSellRoot.tsx b/src/navigation/services/screens/BuyAndSellRoot.tsx index c141be4b72..4340a973c4 100644 --- a/src/navigation/services/screens/BuyAndSellRoot.tsx +++ b/src/navigation/services/screens/BuyAndSellRoot.tsx @@ -4314,7 +4314,7 @@ const BuyAndSellRoot = ({ - + ) : ( <> diff --git a/src/navigation/tabs/shop/components/GiftCardTerms.tsx b/src/navigation/tabs/shop/components/GiftCardTerms.tsx index 30ac04ce81..421c3a19dd 100644 --- a/src/navigation/tabs/shop/components/GiftCardTerms.tsx +++ b/src/navigation/tabs/shop/components/GiftCardTerms.tsx @@ -1,11 +1,10 @@ import {WIDTH} from '../../../../components/styled/Containers'; -import React from 'react'; -import RenderHTML from 'react-native-render-html'; +import React, {useMemo} from 'react'; +import RenderHTML, {MixedStyleDeclaration} from 'react-native-render-html'; import {horizontalPadding} from './styled/ShopTabComponents'; -import {SlateDark} from '../../../../styles/colors'; +import {useTheme} from '../../../../contexts'; -const termsStyle = { - color: SlateDark, +const termsStyle: MixedStyleDeclaration = { fontSize: 12, fontWeight: '300', padding: 10, @@ -15,9 +14,14 @@ const termsStyle = { }; export default ({terms}: {terms: string}) => { + const theme = useTheme(); + const baseStyle = useMemo( + () => ({...termsStyle, color: theme.colors.description}), + [theme.colors.description], + ); return ( Date: Tue, 17 Nov 2026 09:20:37 -0500 Subject: [PATCH 3/7] Accessibility: Fix - screen reader names and roles --- src/components/back/HeaderBackButton.tsx | 4 ++++ src/components/blockie/Blockie.tsx | 2 ++ src/components/chain-search/ChainSearch.tsx | 2 ++ src/components/home-card/HomeCard.tsx | 1 + src/components/settings/Settings.tsx | 8 +++++++- src/components/virtual-keyboard/VirtualKeyboard.tsx | 6 +++++- .../virtual-keyboard/VirtualKeyboardButtonAnimation.tsx | 4 ++++ src/navigation/tabs/home/components/Crypto.tsx | 2 ++ .../tabs/home/components/HeaderProfileButton.tsx | 1 + src/navigation/tabs/home/components/HeaderScanButton.tsx | 1 + src/navigation/wallet/screens/AccountDetails.tsx | 3 +++ 11 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/components/back/HeaderBackButton.tsx b/src/components/back/HeaderBackButton.tsx index 3b6b9bb4ba..dd6383e576 100644 --- a/src/components/back/HeaderBackButton.tsx +++ b/src/components/back/HeaderBackButton.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import {useTranslation} from 'react-i18next'; import {StyleSheet, View} from 'react-native'; import {TouchableOpacity} from 'react-native-gesture-handler'; import Svg, {Path} from 'react-native-svg'; @@ -36,10 +37,13 @@ const HeaderBackButton: React.FC = ({onPress}) => { } }; + const {t} = useTranslation(); const arrowFill = theme.dark ? Slate : SlateDark; return ( ({ const _SearchFilterContainer = () => { return ( { dispatch(AppActions.showChainSelectorModal({context, chainsOptions})); }}> @@ -559,6 +560,7 @@ const SearchComponent = ({ diff --git a/src/components/home-card/HomeCard.tsx b/src/components/home-card/HomeCard.tsx index e68f9eceb9..7fc4e245cc 100644 --- a/src/components/home-card/HomeCard.tsx +++ b/src/components/home-card/HomeCard.tsx @@ -221,6 +221,7 @@ const HomeCard: React.FC = ({ = ({color, background}) => { }; const Settings = ({onPress}: {onPress: () => void}) => { + const {t} = useTranslation(); const theme = useTheme(); const color = theme.dark ? Slate : SlateDark; const background = theme.dark ? LightBlack : NeutralSlate; return ( - + diff --git a/src/components/virtual-keyboard/VirtualKeyboard.tsx b/src/components/virtual-keyboard/VirtualKeyboard.tsx index 1a02cc913f..2fdba0c22e 100644 --- a/src/components/virtual-keyboard/VirtualKeyboard.tsx +++ b/src/components/virtual-keyboard/VirtualKeyboard.tsx @@ -1,4 +1,5 @@ import React, {memo} from 'react'; +import {useTranslation} from 'react-i18next'; import {StyleSheet, View} from 'react-native'; import {useTheme} from '../../contexts'; import {SlateDark, White} from '../../styles/colors'; @@ -177,6 +178,7 @@ const Cell: React.FC = ({ onCellPress?.(value)} + accessibilityLabel={value} backgroundColor={backgroundColor} context={context}> <> @@ -248,6 +250,7 @@ const VirtualKeyboardContent: React.FC = ({ context, isSmallScreen, }) => { + const {t} = useTranslation(); const theme = useTheme(); const backgroundColor = darkModeOnly || theme.dark @@ -372,7 +375,8 @@ const VirtualKeyboardContent: React.FC = ({ isSmallScreen={_isSmallScreen} context={context} onLongPress={() => onCellPress?.('reset')} - onPress={() => onCellPress?.('backspace')}> + onPress={() => onCellPress?.('backspace')} + accessibilityLabel={t('Delete')}> diff --git a/src/components/virtual-keyboard/VirtualKeyboardButtonAnimation.tsx b/src/components/virtual-keyboard/VirtualKeyboardButtonAnimation.tsx index 022a39d04c..c91054667c 100644 --- a/src/components/virtual-keyboard/VirtualKeyboardButtonAnimation.tsx +++ b/src/components/virtual-keyboard/VirtualKeyboardButtonAnimation.tsx @@ -20,6 +20,7 @@ interface RippleProps { onLongPress?: () => void; isSmallScreen?: boolean; context?: KeyboardSizesContext; + accessibilityLabel?: string; children: React.ReactNode; } @@ -29,6 +30,7 @@ const VirtualKeyboardButtonAnimation: React.FC = ({ onLongPress, isSmallScreen, context, + accessibilityLabel, children, }) => { const didLongPress = useRef(false); @@ -51,6 +53,8 @@ const VirtualKeyboardButtonAnimation: React.FC = ({ return ( { { haptic('soft'); @@ -864,6 +865,7 @@ const Crypto = ({active = true}: CryptoProps) => { { haptic('soft'); diff --git a/src/navigation/tabs/home/components/HeaderProfileButton.tsx b/src/navigation/tabs/home/components/HeaderProfileButton.tsx index 96d01f31ae..3ed7bb3608 100644 --- a/src/navigation/tabs/home/components/HeaderProfileButton.tsx +++ b/src/navigation/tabs/home/components/HeaderProfileButton.tsx @@ -19,6 +19,7 @@ const ProfileButton: React.FC = () => { { user diff --git a/src/navigation/tabs/home/components/HeaderScanButton.tsx b/src/navigation/tabs/home/components/HeaderScanButton.tsx index db65a4923f..2da9b0e0d0 100644 --- a/src/navigation/tabs/home/components/HeaderScanButton.tsx +++ b/src/navigation/tabs/home/components/HeaderScanButton.tsx @@ -35,6 +35,7 @@ const ScanButton: React.FC = () => { { dispatch( diff --git a/src/navigation/wallet/screens/AccountDetails.tsx b/src/navigation/wallet/screens/AccountDetails.tsx index 6e548d8ffc..5bafd6c23f 100644 --- a/src/navigation/wallet/screens/AccountDetails.tsx +++ b/src/navigation/wallet/screens/AccountDetails.tsx @@ -2145,6 +2145,7 @@ const AccountDetails: React.FC = ({route}) => { testID="account-details-wallets-tab" accessibilityRole="button" accessibilityLabel={t('Wallets')} + accessibilityState={{selected: isWalletsTab}} onPress={() => { setActiveTab('wallets'); }}> @@ -2158,6 +2159,7 @@ const AccountDetails: React.FC = ({route}) => { testID="account-details-allocation-tab" accessibilityRole="button" accessibilityLabel={t('Allocation')} + accessibilityState={{selected: isAllocationTab}} onPress={() => { setActiveTab('allocation'); }}> @@ -2171,6 +2173,7 @@ const AccountDetails: React.FC = ({route}) => { testID="account-details-activity-tab" accessibilityRole="button" accessibilityLabel={t('Activity')} + accessibilityState={{selected: isActivityTab}} onPress={async () => { setActiveTab('activity'); await sleep(200); From 920157595dd4886a46075c3428721aea9567ee1a Mon Sep 17 00:00:00 2001 From: pixeltweaker <329580667+pixeltweaker@users.noreply.github.com> Date: Tue, 17 Nov 2026 09:20:49 -0500 Subject: [PATCH 4/7] Accessibility: Fix - bigger tap areas for the smallest targets --- src/components/chain-search/ChainSearch.tsx | 1 + .../services/components/externalServicesWalletSelector.tsx | 1 + src/navigation/tabs/home/components/KycBannerGate.tsx | 1 + src/navigation/wallet/screens/AccountDetails.tsx | 5 +++++ 4 files changed, 8 insertions(+) diff --git a/src/components/chain-search/ChainSearch.tsx b/src/components/chain-search/ChainSearch.tsx index f3765f5daa..c6711addde 100644 --- a/src/components/chain-search/ChainSearch.tsx +++ b/src/components/chain-search/ChainSearch.tsx @@ -513,6 +513,7 @@ const SearchComponent = ({ return ( { dispatch(AppActions.showChainSelectorModal({context, chainsOptions})); }}> diff --git a/src/navigation/services/components/externalServicesWalletSelector.tsx b/src/navigation/services/components/externalServicesWalletSelector.tsx index fb9fa5fc99..1c30afde61 100644 --- a/src/navigation/services/components/externalServicesWalletSelector.tsx +++ b/src/navigation/services/components/externalServicesWalletSelector.tsx @@ -135,6 +135,7 @@ export const WalletSelector: React.FC< const theme = useTheme(); return ( { {config.message} {config.dismissible ? ( setDismissed(displayState)} accessibilityLabel={t('Dismiss KYC notification')}> diff --git a/src/navigation/wallet/screens/AccountDetails.tsx b/src/navigation/wallet/screens/AccountDetails.tsx index 5bafd6c23f..59ffeeb6b3 100644 --- a/src/navigation/wallet/screens/AccountDetails.tsx +++ b/src/navigation/wallet/screens/AccountDetails.tsx @@ -370,6 +370,9 @@ const styles = StyleSheet.create({ alignSelf: 'center', flexDirection: 'row', gap: 8, + // Room for the address badge's 19pt hitSlop (taken from the 22pt gap + // above via contentTopMargin), so touches there reach the badge. + paddingTop: 19, }, }); @@ -517,6 +520,7 @@ const AccountAddressBadge = ({address}: AccountAddressBadgeProps) => { return ( @@ -1989,6 +1993,7 @@ const AccountDetails: React.FC = ({route}) => { Date: Tue, 17 Nov 2026 09:51:22 -0500 Subject: [PATCH 5/7] Accessibility: Fix - WarningDark reuses the existing Bill status brown #A05708 --- src/navigation/tabs/shop/bill/components/BillStatus.tsx | 3 ++- src/styles/colors.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/navigation/tabs/shop/bill/components/BillStatus.tsx b/src/navigation/tabs/shop/bill/components/BillStatus.tsx index 9971515a9e..2685cd1c34 100644 --- a/src/navigation/tabs/shop/bill/components/BillStatus.tsx +++ b/src/navigation/tabs/shop/bill/components/BillStatus.tsx @@ -11,6 +11,7 @@ import { LightBlack, LinkBlue, LightBlue, + WarningDark, } from '../../../../../styles/colors'; import { BillPayAccount, @@ -39,7 +40,7 @@ const statusFields = { }, dueSoon: { backgroundColor: '#FEECD4', - color: '#A05708', + color: WarningDark, text: () => t('Due in 1 day'), }, dueLater: { diff --git a/src/styles/colors.ts b/src/styles/colors.ts index 244d3366e8..9e1d1f7a85 100644 --- a/src/styles/colors.ts +++ b/src/styles/colors.ts @@ -52,9 +52,9 @@ export const Warning = '#AC6304'; export const Warning75 = '#FDC67F'; export const Warning25 = '#FEECD4'; /** - * Readable warning text on Warning25 fills (5.03:1). + * Readable warning text on Warning25 fills (4.70:1). Same value Bill status already used. */ -export const WarningDark = '#955603'; +export const WarningDark = '#A05708'; export const Disabled = '#edeef0'; export const DisabledDark = '#3c3c3c'; From 279b378b7b375177dbcdedb44245ec5b83eaca4b Mon Sep 17 00:00:00 2001 From: pixeltweaker <329580667+pixeltweaker@users.noreply.github.com> Date: Tue, 17 Nov 2026 13:10:58 -0500 Subject: [PATCH 6/7] Accessibility: Fix - Buy offer warning text readable in dark mode (CautionBright) --- .../components/OfferSelectorModal.tsx | 19 +++++++++++++++---- src/styles/colors.ts | 4 ++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/navigation/services/components/OfferSelectorModal.tsx b/src/navigation/services/components/OfferSelectorModal.tsx index 7191e0bb06..9541bae41e 100644 --- a/src/navigation/services/components/OfferSelectorModal.tsx +++ b/src/navigation/services/components/OfferSelectorModal.tsx @@ -26,6 +26,7 @@ import { Success25, LightBlue, Caution, + CautionBright, } from '../../../styles/colors'; import {formatFiatAmount} from '../../../utils/helper-methods'; import {BuyCryptoExchangeKey} from '../buy-crypto/utils/buy-crypto-utils'; @@ -227,7 +228,6 @@ const styles = StyleSheet.create({ marginTop: 20, }, offerDataWarningMsg: { - color: Caution, marginRight: 10, fontSize: 12, }, @@ -549,9 +549,20 @@ const OfferDataWarningContainer: React.FC = ({style, ...rest}) => ( const OfferDataWarningMsg = React.forwardRef< Text, React.ComponentProps ->(({style, ...rest}, ref) => ( - -)); +>(({style, ...rest}, ref) => { + const theme = useTheme(); + return ( + + ); +}); OfferDataWarningMsg.displayName = 'OfferDataWarningMsg'; const OfferDataInfoText = React.forwardRef< diff --git a/src/styles/colors.ts b/src/styles/colors.ts index 9e1d1f7a85..9fa0caa9cf 100644 --- a/src/styles/colors.ts +++ b/src/styles/colors.ts @@ -39,6 +39,10 @@ export const Caution60 = '#ad1313'; * Readable danger text on Caution50 fills (4.73:1). */ export const Caution70 = '#9E1111'; +/** + * Readable danger text in dark mode (7.4:1 on Black, 5.4:1 on LightBlack). + */ +export const CautionBright = '#FF647C'; export const Success = '#2fcfa4'; export const Success50 = '#97E7D1'; From e09adfb212a1aaba93cbd4578a5a2756fb175423 Mon Sep 17 00:00:00 2001 From: pixeltweaker <329580667+pixeltweaker@users.noreply.github.com> Date: Wed, 18 Nov 2026 09:50:22 -0500 Subject: [PATCH 7/7] Accessibility: Fix - review follow-ups (danger pill, keypad letters, avatar, tabs, named colours) - Danger pill text in dark mode uses Caution70 on the Caution50 fill, same as the danger button. - Keypad letters follow darkModeOnly like the numbers (Slate30 on dark-only keypads). - Blockie is hidden from VoiceOver too (accessibilityElementsHidden). - Account details Wallets/Allocation/Activity use tab roles inside a tablist. - BillStatus uses named colours where the typed value matched one (Caution25, Caution, Warning25, Success25, SuccessDark, White). - Removed the unused AlertBox and AssetsSearchPill components. --- src/components/alert-box/AlertBox.tsx | 72 ------------- src/components/blockie/Blockie.tsx | 1 + src/components/button/Button.tsx | 2 +- .../virtual-keyboard/VirtualKeyboard.tsx | 21 ++-- .../tabs/home/components/AssetsSearchPill.tsx | 101 ------------------ .../tabs/shop/bill/components/BillStatus.tsx | 42 ++++---- .../wallet/screens/AccountDetails.tsx | 14 ++- 7 files changed, 50 insertions(+), 203 deletions(-) delete mode 100644 src/components/alert-box/AlertBox.tsx delete mode 100644 src/navigation/tabs/home/components/AssetsSearchPill.tsx diff --git a/src/components/alert-box/AlertBox.tsx b/src/components/alert-box/AlertBox.tsx deleted file mode 100644 index dd121d46d2..0000000000 --- a/src/components/alert-box/AlertBox.tsx +++ /dev/null @@ -1,72 +0,0 @@ -import React from 'react'; -import {StyleSheet, Text, View} from 'react-native'; -import { - Caution, - Caution25, - NeutralSlate, - SlateDark, - Success25, - SuccessDark, - Warning25, - WarningDark, -} from '../../styles/colors'; -import {ScreenGutter} from '../styled/Containers'; - -type AlertType = - | 'caution' - | 'success' - | 'warning' - | 'default' - | null - | undefined; - -interface AlertBoxProps { - type?: AlertType; - children: React.ReactNode; -} - -type AlertPalette = { - [k in Exclude]: { - background: string; - text: string; - }; -}; - -const palette: AlertPalette = { - caution: { - background: Caution25, - text: Caution, - }, - success: { - background: Success25, - text: SuccessDark, - }, - warning: { - background: Warning25, - text: WarningDark, - }, - default: { - background: NeutralSlate, - text: SlateDark, - }, -}; - -const styles = StyleSheet.create({ - container: { - padding: parseInt(ScreenGutter, 10), - borderRadius: 4, - }, -}); - -const AlertBox: React.FC = props => { - const {type = 'default', children} = props; - const colors = palette[type || 'default'] || palette.default; - - return ( - - {children} - - ); -}; - -export default AlertBox; diff --git a/src/components/blockie/Blockie.tsx b/src/components/blockie/Blockie.tsx index 9625b573cd..275c966a8f 100644 --- a/src/components/blockie/Blockie.tsx +++ b/src/components/blockie/Blockie.tsx @@ -143,6 +143,7 @@ const Blockie = ({ return ( > = ({ - style, - ...rest -}) => { +const CellLetter: React.FC< + Pick & React.ComponentProps +> = ({darkModeOnly, style, ...rest}) => { const theme = useTheme(); return ( ); @@ -188,7 +193,9 @@ const Cell: React.FC = ({ context={context}> {value} - {letters ? {letters} : null} + {letters ? ( + {letters} + ) : null}
diff --git a/src/navigation/tabs/home/components/AssetsSearchPill.tsx b/src/navigation/tabs/home/components/AssetsSearchPill.tsx deleted file mode 100644 index 2b1034fedd..0000000000 --- a/src/navigation/tabs/home/components/AssetsSearchPill.tsx +++ /dev/null @@ -1,101 +0,0 @@ -import React from 'react'; -import {useTranslation} from 'react-i18next'; -import {StyleSheet, TextInput, View} from 'react-native'; -import {useTheme} from '../../../../contexts'; -import SearchSvg from '../../../../../assets/img/search.svg'; -import { - Slate30, - SlateDark, - White, - Placeholder, -} from '../../../../styles/colors'; - -const styles = StyleSheet.create({ - container: { - flex: 1, - flexDirection: 'row', - alignItems: 'center', - borderRadius: 50, - paddingVertical: 10, - paddingHorizontal: 14, - borderWidth: 1, - }, - iconContainer: { - marginRight: 10, - }, - input: { - flex: 1, - fontSize: 14, - padding: 0, - }, -}); - -const Container: React.FC<{ - height?: number; - children?: React.ReactNode; -}> = ({height, children}) => { - const theme = useTheme(); - return ( - - {children} - - ); -}; - -const IconContainer: React.FC<{children?: React.ReactNode}> = ({children}) => ( - {children} -); - -const Input: React.FC> = ({ - style, - ...rest -}) => { - const theme = useTheme(); - return ( - - ); -}; - -interface Props { - value: string; - onChangeText: (text: string) => void; - placeholder?: string; - height?: number; -} - -const AssetsSearchPill: React.FC = ({ - value, - onChangeText, - placeholder = 'Search', - height, -}) => { - const {t} = useTranslation(); - return ( - - - - - - - ); -}; - -export default AssetsSearchPill; diff --git a/src/navigation/tabs/shop/bill/components/BillStatus.tsx b/src/navigation/tabs/shop/bill/components/BillStatus.tsx index 2685cd1c34..8114123ade 100644 --- a/src/navigation/tabs/shop/bill/components/BillStatus.tsx +++ b/src/navigation/tabs/shop/bill/components/BillStatus.tsx @@ -6,12 +6,18 @@ import {useTheme} from '../../../../../contexts'; import {Paragraph} from '../../../../../components/styled/Text'; import { Action, + Caution, + Caution25, Slate30, SlateDark, LightBlack, LinkBlue, LightBlue, + Success25, + SuccessDark, + Warning25, WarningDark, + White, } from '../../../../../styles/colors'; import { BillPayAccount, @@ -34,17 +40,17 @@ interface BillStatusStyleProps { const statusFields = { dueNow: { - backgroundColor: '#ffd8de', - color: '#b51b16', + backgroundColor: Caution25, + color: Caution, text: () => t('Due in 1 day'), }, dueSoon: { - backgroundColor: '#FEECD4', + backgroundColor: Warning25, color: WarningDark, text: () => t('Due in 1 day'), }, dueLater: { - backgroundColor: '#ffffff', + backgroundColor: White, color: SlateDark, text: () => t('Due in 15 days'), darkTheme: { @@ -53,33 +59,33 @@ const statusFields = { }, }, failed: { - backgroundColor: '#ffd8de', - color: '#b51b16', + backgroundColor: Caution25, + color: Caution, text: () => t('Failed'), }, canceled: { - backgroundColor: '#ffd8de', - color: '#b51b16', + backgroundColor: Caution25, + color: Caution, text: () => t('Canceled'), }, reversed: { - backgroundColor: '#ffd8de', - color: '#b51b16', + backgroundColor: Caution25, + color: Caution, text: () => t('Failed'), }, reversalRequired: { - backgroundColor: '#ffd8de', - color: '#b51b16', + backgroundColor: Caution25, + color: Caution, text: () => t('Failed'), }, reversalProcessing: { - backgroundColor: '#ffd8de', - color: '#b51b16', + backgroundColor: Caution25, + color: Caution, text: () => t('Failed'), }, complete: { - backgroundColor: '#CBF3E8', - color: '#0B754A', + backgroundColor: Success25, + color: SuccessDark, text: () => t('Completed'), darkTheme: { backgroundColor: '#076A46', @@ -87,8 +93,8 @@ const statusFields = { }, }, sent: { - backgroundColor: '#CBF3E8', - color: '#0B754A', + backgroundColor: Success25, + color: SuccessDark, text: () => t('Sent'), darkTheme: { backgroundColor: '#076A46', diff --git a/src/navigation/wallet/screens/AccountDetails.tsx b/src/navigation/wallet/screens/AccountDetails.tsx index 59ffeeb6b3..37c596c34d 100644 --- a/src/navigation/wallet/screens/AccountDetails.tsx +++ b/src/navigation/wallet/screens/AccountDetails.tsx @@ -464,9 +464,15 @@ const AssetsDataContainer: React.FC<{children?: React.ReactNode}> = ({ children, }) => {children}; +// The Wallets / Allocation / Activity row is a tab bar for screen readers +// ("tab 1 of 3"). const HeaderListContainer: React.FC<{children?: React.ReactNode}> = ({ children, -}) => {children}; +}) => ( + + {children} + +); const AddCustomTokenContainer: React.FC = ({ style, @@ -2148,7 +2154,7 @@ const AccountDetails: React.FC = ({route}) => { { @@ -2162,7 +2168,7 @@ const AccountDetails: React.FC = ({route}) => { { @@ -2176,7 +2182,7 @@ const AccountDetails: React.FC = ({route}) => { {