Skip to content

Commit abfe918

Browse files
committed
improve UI of chain namespace filter
1 parent c1f4303 commit abfe918

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/modal/src/ui/components/ConnectWallet/ConnectWalletChainFilter/ConnectWalletChainFilter.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ function ConnectWalletChainFilter(props: ConnectWalletChainFilterProps) {
4141
type="button"
4242
key={chain.id}
4343
className={cn(
44-
"w3a--flex w3a--items-center w3a--justify-center w3a--gap-x-1 w3a--text-xs w3a--font-medium w3a--px-4 w3a--py-3 w3a--text-app-gray-500 dark:w3a--text-app-gray-300 w3a--h-12",
44+
"w3a--flex w3a--items-center w3a--justify-center w3a--gap-x-1 w3a--text-xs w3a--font-medium w3a--px-4 w3a--py-3 w3a--text-app-gray-500 dark:w3a--text-app-gray-300 hover:w3a--bg-app-gray-200 dark:hover:w3a--bg-app-gray-700 w3a--h-12 w3a--rounded-2xl",
4545
{
46-
"w3a--bg-app-gray-100 dark:w3a--bg-app-gray-800 w3a--border w3a--border-app-gray-200 dark:w3a--border-app-gray-700 w3a--rounded-2xl hover:w3a--bg-app-gray-200 dark:hover:w3a--bg-app-gray-700 w3a--text-app-gray-900 dark:w3a--text-app-white":
46+
"w3a--bg-app-gray-100 dark:w3a--bg-app-gray-800 w3a--border w3a--border-app-gray-200 dark:w3a--border-app-gray-700 w3a--text-app-gray-900 dark:w3a--text-app-white":
4747
selectedChain === chain.id,
4848
}
4949
)}
@@ -52,7 +52,7 @@ function ConnectWalletChainFilter(props: ConnectWalletChainFilterProps) {
5252
{chain.icon && (
5353
<img src={getIcons(isDark ? `${chain.icon}-dark` : `${chain.icon}-light`)} alt={chain.name} className="w3a--size-5 w3a--object-contain" />
5454
)}
55-
{t(chain.name)}
55+
<span className="first-letter:w3a--capitalize">{t(chain.name)}</span>
5656
</button>
5757
))}
5858
</div>

0 commit comments

Comments
 (0)