mirror of
https://github.com/we-promise/sure.git
synced 2026-04-16 18:44:13 +00:00
* fix: improve dark mode readability across the app * fix: improve dark mode support for asset percentage text * fix: apply suggested patch for theme-related improvements * chore: apply PR feedback – remove dark:, align with design tokens, update form builder * chore: revert background token and restore original style for visual consistency * chore: remove unnecessary class attributes from form fields using builder * refactor: move number_field and date_field into metaprogramming block * refactor: replace bg-divider-adaptive divs with <hr> and border-secondary * fix: apply requested changes and linting fixes
7 lines
370 B
Plaintext
7 lines
370 B
Plaintext
<%# locals: (key:, size: "md", color: "current") %>
|
|
|
|
<% size_class = case size when "sm" then "w-4 h-4" when "md" then "w-5 h-5" when "lg" then "w-6 h-6" end %>
|
|
<% color_class = case color when "current" then "text-current" when "gray" then "text-secondary" end %>
|
|
|
|
<%= image_tag("icon-#{key}.svg", class: class_names(size_class, color_class, "shrink-0"), alt: key ) %>
|