mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 19:44:09 +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
10 lines
403 B
Plaintext
10 lines
403 B
Plaintext
<%# locals: (name:, path:, icon:) %>
|
|
|
|
<%= link_to path, class: class_names(
|
|
"flex items-center gap-2 btn btn--ghost whitespace-nowrap",
|
|
page_active?(path) ? "text-primary bg-container shadow-border-xs" : "text-secondary hover:bg-surface-hover border-transparent"
|
|
), aria: { current: ("page" if page_active?(path)) } do %>
|
|
<%= lucide_icon(icon, class: "w-5 h-5") if icon %>
|
|
<%= name %>
|
|
<% end %>
|