diff --git a/CHANGELOG.md b/CHANGELOG.md index 15edb7d16..b77726873 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), This project (not yet) adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## mb-v2412.2 + +### Changed +- change rating icons to thumbs in map + +### Fixed +- hide accessible text for rating buttons to only be visible for screen readers + + ## mb-v2412.1 ### Fixed 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/maps/static/a4maps/a4maps_display_points.js b/adhocracy4/maps/static/a4maps/a4maps_display_points.js index 7a3da61d4..f79f0294f 100644 --- a/adhocracy4/maps/static/a4maps/a4maps_display_points.js +++ b/adhocracy4/maps/static/a4maps/a4maps_display_points.js @@ -86,10 +86,10 @@ function init () { function getRatings (feature) { return '' + - feature.properties.positive_rating_count + ' ' + + feature.properties.positive_rating_count + ' ' + '' + '' + - feature.properties.negative_rating_count + ' ' + + feature.properties.negative_rating_count + ' ' + '' } 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} ) }