The personal finance app for everyone (by everyone)
Ruby
<%= tag.div style: transparent? ? container_styles : nil,
class: container_classes,
role: (!aria_hidden && description.present?) ? "img" : nil,
"aria-label": aria_hidden ? nil : description.presence,
"aria-hidden": aria_hidden ? "true" : nil do %>
<% if icon %>
<%= helpers.icon(icon, size: icon_size, color: "current") %>
<% elsif text %>
<%= tag.span text.first(text_length), class: text_classes %>
<% end %>
<% end %>