Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
672 B
Raw Blame
<%= tag.span class: class_names("relative block overflow-hidden shrink-0", class_name) do %>
  <%= tag.span class: "absolute inset-0", aria: { hidden: true } do %>
    <%= render DS::FilledIcon.new(
          icon: fallback_icon,
          text: fallback_text,
          text_length: 2,
          hex_color: fallback_color,
          rounded: rounded?,
          class_name: class_names("w-full h-full", rounded? ? "rounded-full" : "rounded-lg")
        ) %>
  <% end %>
  <% if (url = brand_url) %>
    <%= helpers.image_tag url, class: "absolute inset-0 w-full h-full bg-container", alt: "", loading: "lazy", data: ProviderLogo::REMOVE_ON_ERROR %>
  <% end %>
<% end %>