Skip to content

Commit

Permalink
Remove extra span nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
khiga8 committed Apr 26, 2024
1 parent 554de3f commit 4b5b1e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/primer/beta/button.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<span class="Button-visual Button-trailingVisual">
<% if @trailing_visual_counter %>
<span class="sr-only">(<%= trailing_visual %>)</span>
<span aria-hidden="true"><%= trailing_visual %></span>
<%= trailing_visual %>
<% else %>
<%= trailing_visual %>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/components/primer/beta/button.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Button < Primer::Component
label: Primer::Beta::Label,
counter: lambda { |**system_arguments|
@trailing_visual_counter = true
Primer::Beta::Counter.new(**system_arguments)
Primer::Beta::Counter.new("aria-hidden": true, **system_arguments)
}
}

Expand Down

0 comments on commit 4b5b1e0

Please sign in to comment.