From eb93915418635d3dfbb528c857bfd13eaf1faf7f Mon Sep 17 00:00:00 2001 From: Philipp Veller Date: Wed, 11 Dec 2024 10:49:34 +0100 Subject: [PATCH] react/ratings: hide accessible text for rating buttons to only be visible for screen readers --- .../__snapshots__/comment.jest.jsx.snap | 16 ++++++++-------- .../ratings/static/ratings/RatingButton.jsx | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/adhocracy4/comments_async/static/comments_async/__tests__/__snapshots__/comment.jest.jsx.snap b/adhocracy4/comments_async/static/comments_async/__tests__/__snapshots__/comment.jest.jsx.snap index 0deddc9b8..974d7a0b6 100644 --- a/adhocracy4/comments_async/static/comments_async/__tests__/__snapshots__/comment.jest.jsx.snap +++ b/adhocracy4/comments_async/static/comments_async/__tests__/__snapshots__/comment.jest.jsx.snap @@ -92,7 +92,7 @@ exports[`Comment Component renders comment with creator and comment text 1`] = ` Likes Click to like @@ -116,7 +116,7 @@ exports[`Comment Component renders comment with creator and comment text 1`] = ` Dislikes Click to dislike @@ -383,7 +383,7 @@ exports[`Comment Component renders comment with creator and comment text 1`] = ` Likes Click to like @@ -407,7 +407,7 @@ exports[`Comment Component renders comment with creator and comment text 1`] = ` Dislikes Click to dislike @@ -736,7 +736,7 @@ exports[`Comment Component renders comment with moderator badge 1`] = ` Likes Click to like @@ -760,7 +760,7 @@ exports[`Comment Component renders comment with moderator badge 1`] = ` Dislikes Click to dislike @@ -1032,7 +1032,7 @@ exports[`Comment Component renders comment with moderator badge 1`] = ` Likes Click to like @@ -1056,7 +1056,7 @@ exports[`Comment Component renders comment with moderator badge 1`] = ` Dislikes Click to dislike diff --git a/adhocracy4/ratings/static/ratings/RatingButton.jsx b/adhocracy4/ratings/static/ratings/RatingButton.jsx index bf410e331..501004d06 100644 --- a/adhocracy4/ratings/static/ratings/RatingButton.jsx +++ b/adhocracy4/ratings/static/ratings/RatingButton.jsx @@ -32,7 +32,7 @@ const RatingButton = ({ type="button" > {children} - {type === 'up' ? translations.upvote : translations.downvote} + {type === 'up' ? translations.upvote : translations.downvote} ) }