Skip to content

Commit

Permalink
Fix bug where sr-only caused reviews to overflow. They need to be ins…
Browse files Browse the repository at this point in the history
…ide a relative container, for some reason. See tailwindlabs/tailwindcss#12429 (comment)
  • Loading branch information
DanielJackson-Oslo committed Feb 29, 2024
1 parent 8e775d0 commit 399286a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/reviews/_review_content.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% show_full_review = false unless defined?(:show_full_review) %>

<h3 class="reset-header-styles">
<span class="font-bold flex gap-1">
<span class="font-bold inline-flex gap-1 relative">
<%= inline_svg_tag 'star', class: 'text-pink-600' if review.star_rating %>
<%= review.star_rating %>
<span class="sr-only"><%= t("reviews.stars_given", count: review.star_rating.to_i) %></span>
Expand Down

0 comments on commit 399286a

Please sign in to comment.