From b690b43fefd094015ddd86f7d6f50a1a7450384c Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 21 Nov 2022 22:07:10 +0000 Subject: [PATCH] feat: accessibility --- src/components/common/BlockchainInfo.tsx | 5 ++++- src/components/common/ConnectButton.tsx | 2 ++ src/components/common/FollowingButton.tsx | 1 + src/components/site/SiteArchives.tsx | 1 + src/components/site/SiteHeader.tsx | 1 + src/components/site/SiteHome.tsx | 1 + src/components/ui/UniLink.tsx | 2 +- src/pages/_document.tsx | 2 +- 8 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/common/BlockchainInfo.tsx b/src/components/common/BlockchainInfo.tsx index 1d7ce347..f599f578 100644 --- a/src/components/common/BlockchainInfo.tsx +++ b/src/components/common/BlockchainInfo.tsx @@ -16,7 +16,10 @@ export const BlockchainInfo: React.FC<{ {({ open }: { open: boolean }) => ( <> - + diff --git a/src/components/common/ConnectButton.tsx b/src/components/common/ConnectButton.tsx index 2c4e12ec..2bf6baa1 100644 --- a/src/components/common/ConnectButton.tsx +++ b/src/components/common/ConnectButton.tsx @@ -119,6 +119,7 @@ export const ConnectButton: React.FC<{ diff --git a/src/components/site/SiteHome.tsx b/src/components/site/SiteHome.tsx index a261ba4d..8356a86e 100644 --- a/src/components/site/SiteHome.tsx +++ b/src/components/site/SiteHome.tsx @@ -101,6 +101,7 @@ export const SiteHome: React.FC<{ variant="text" onClick={fetchNextPage} isLoading={isFetchingNextPage} + aria-label="load more" > There are {postPages[0].total - currentLength} more post {postPages[0].total - currentLength > 1 ? "s" : ""}, click to load diff --git a/src/components/ui/UniLink.tsx b/src/components/ui/UniLink.tsx index e2e39dae..6eacffb6 100644 --- a/src/components/ui/UniLink.tsx +++ b/src/components/ui/UniLink.tsx @@ -8,7 +8,7 @@ export const UniLink: React.FC<{ }> = ({ href, onClick, children, className, ...props }) => { if (onClick) { return ( - ) diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 87082839..3e8a9252 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -2,7 +2,7 @@ import { Html, Head, Main, NextScript, DocumentProps } from "next/document" export default function Document(props: DocumentProps) { return ( - +