From e8e17129f219efbe4a1e7d815c573b9aba57dfcd Mon Sep 17 00:00:00 2001 From: byot-dot <251207510+byot-dot@users.noreply.github.com> Date: Mon, 7 Sep 2026 19:33:46 -0600 Subject: [PATCH] fix: improve core control accessibility --- src/components/BalanceUI.tsx | 7 ++++--- src/components/Settings/Settings.tsx | 2 ++ src/components/Wallet/Wallet.tsx | 18 ++++++++++++------ src/layouts/DefaultLayout.tsx | 7 ++++++- 4 files changed, 24 insertions(+), 10 deletions(-) diff --git a/src/components/BalanceUI.tsx b/src/components/BalanceUI.tsx index 0f4dbc54..6f54b79c 100644 --- a/src/components/BalanceUI.tsx +++ b/src/components/BalanceUI.tsx @@ -101,9 +101,10 @@ export default function BalanceUI({ balance !== ('GenericFetchError' as GetBalanceError) && token.name && (onBalanceClick ? ( - onBalanceClick(Number(BigNumber(balance).dividedBy(`1e${token.decimals}`)))} // ADD + onClick={() => onBalanceClick(Number(BigNumber(balance).dividedBy(`1e${token.decimals}`)))} > {` ${Number( BigNumber(balance).dividedBy(`1e${token.decimals}`) @@ -113,7 +114,7 @@ export default function BalanceUI({ ${token.name == 'SCRT' && isSecretToken ? 's' : ''}${token.name} ${ token.coingecko_id && currencyPriceString && showCurrencyEquiv ? ` (${currencyPriceString})` : '' }`} - + ) : ( <> {` ${Number( diff --git a/src/components/Settings/Settings.tsx b/src/components/Settings/Settings.tsx index 176dd225..0b39305c 100644 --- a/src/components/Settings/Settings.tsx +++ b/src/components/Settings/Settings.tsx @@ -206,6 +206,8 @@ function Settings() {
{isMenuOpen && (
)} -
- -
-
+ ) : ( - )} diff --git a/src/layouts/DefaultLayout.tsx b/src/layouts/DefaultLayout.tsx index 5aa68bf5..1f7baa98 100644 --- a/src/layouts/DefaultLayout.tsx +++ b/src/layouts/DefaultLayout.tsx @@ -56,7 +56,7 @@ export const DefaultLayout = ({ children }: any) => { {icon} {message} {t.type !== 'loading' && ( - )} @@ -72,6 +72,7 @@ export const DefaultLayout = ({ children }: any) => {
{/* Menu */}