From f73b2048c2856cb27f9379136c2b0e995a97eaf2 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Tue, 21 Oct 2025 13:46:46 -0400 Subject: [PATCH] use aria-label attrs instead of sr-only sr-only absolutely positions elements which creates wierd scrolling issues in places. --- app/lish/Subscribe.tsx | 6 ++---- .../[publication]/[rkey]/Interactions/Interactions.tsx | 4 ++-- app/lish/[did]/[publication]/[rkey]/PublishedPageBlock.tsx | 4 ++-- app/reader/ReaderContent.tsx | 6 ++---- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/app/lish/Subscribe.tsx b/app/lish/Subscribe.tsx index 8a2f28ed..48b75e96 100644 --- a/app/lish/Subscribe.tsx +++ b/app/lish/Subscribe.tsx @@ -217,8 +217,7 @@ export const SubscribeWithBluesky = (props: { pub_uri={props.pub_uri} setSuccessModalOpen={setSuccessModalOpen} /> - - Subscribe to RSS + @@ -267,8 +266,7 @@ const ManageSubscription = (props: { )} - - Subscribe to RSS + Get RSS diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx index 130b206b..91d30991 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx @@ -119,8 +119,8 @@ export const Interactions = (props: { openInteractionDrawer("quotes", document_uri, props.pageId); else setInteractionState(document_uri, { drawerOpen: false }); }} + aria-label="Post quotes" > - Post quotes {props.quotesCount}{" "} {!props.compact && ( - Post comments {props.commentsCount}{" "} {!props.compact && ( { openInteractionDrawer("quotes", document_uri, props.pageId); else setInteractionState(document_uri, { drawerOpen: false }); }} + aria-label="Page quotes" > - Page quotes {quotes}{" "} )} @@ -220,8 +220,8 @@ const Interactions = (props: { pageId: string; parentPageId?: string }) => { openInteractionDrawer("comments", document_uri, props.pageId); else setInteractionState(document_uri, { drawerOpen: false }); }} + aria-label="Page comments" > - Page comments {comments}{" "} )} diff --git a/app/reader/ReaderContent.tsx b/app/reader/ReaderContent.tsx index 03cecf71..5297cf0f 100644 --- a/app/reader/ReaderContent.tsx +++ b/app/reader/ReaderContent.tsx @@ -229,14 +229,12 @@ const PostInterations = (props: { return (
{props.quotesCount === 0 ? null : ( -
- Post quotes +
{props.quotesCount}
)} {props.showComments === false || props.commentsCount === 0 ? null : ( -
- Post comments +
{props.commentsCount}
)} -- 2.51.2