Skip to content

Commit

Permalink
Pass dark class to child body and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ASPhillips8 committed Dec 2, 2024
1 parent 5bb87a2 commit 3602def
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%= pb_content_tag do %>
<%= pb_rails("body", props: { status: object.status }) do %>
<%= pb_rails("icon", props: { fixed_width: true, icon: object.returned_icon }) if object.returned_icon %>
<%= "#{object.value}%" if object.value %>
<% end %>
<%= pb_rails("body", props: { status: object.status, dark: object.dark }) do %>
<%= pb_rails("icon", props: { fixed_width: true, icon: object.returned_icon, dark: object.dark }) if object.returned_icon %>
<%= "#{object.value}%" if object.value %>
<% end %>
<% end %>

0 comments on commit 3602def

Please sign in to comment.