Skip to content

Commit

Permalink
fix(a11y): Add complementary roles to post show
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitcheljager committed Jan 13, 2025
1 parent d2c764e commit 47dfb0f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/views/posts/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<%= render "archive", post: @post if @archive_authorization.present? %>
</div>

<div class="item__tray">
<div class="item__tray" role="complementary">
<%= render "details" %>
</div>
<% end %>
Expand Down Expand Up @@ -99,6 +99,8 @@
<% end %>
</article>

<%= render "post_recommendations" if @post.recommended_posts.any? %>
<%= render "similar_to" %>
<div role="complementary">
<%= render "post_recommendations" if @post.recommended_posts.any? %>
<%= render "similar_to" %>
</div>
</div>

0 comments on commit 47dfb0f

Please sign in to comment.