Files
sure/app/views/reports/_empty_state.html.erb
Mark Hendriksen f5469ea774 Replace text-tertiary with text-subdued in views (#999)
* Replace text-tertiary with text-subdued in views

Replace usages of the text-tertiary utility with text-subdued across several view partials to standardize subdued text styling because text-tertiary does not exist in the design system (reports, doorkeeper auth, simplefin items). Also adjust the net worth empty-liabilities markup to use a grid layout for consistent spacing, and update the related controller test selector to match the new CSS class.

* Standardize empty net worth message markup

Replace inconsistent markup and classes for empty asset/liability sections in the net worth partial. Swap text-secondary/p-2/text-center for text-subdued with unified padding (py-3 px-4 lg:px-6), and simplify the liabilities block from a grid/div to a single paragraph for consistent styling and spacing.
2026-02-15 23:33:41 +01:00

28 lines
764 B
Plaintext

<div class="bg-container rounded-xl shadow-border-xs p-12 text-center">
<%= icon("chart-bar", class: "w-16 h-16 text-subdued mx-auto mb-6") %>
<h3 class="text-xl font-medium text-primary mb-3">
<%= t("reports.empty_state.title") %>
</h3>
<p class="text-base text-secondary mb-6 max-w-md mx-auto">
<%= t("reports.empty_state.description") %>
</p>
<div class="flex gap-3 justify-center">
<%= render DS::Link.new(
text: t("reports.empty_state.add_transaction"),
href: new_transaction_path,
variant: "primary",
frame: :modal
) %>
<%= render DS::Link.new(
text: t("reports.empty_state.add_account"),
href: new_account_path,
variant: "secondary",
frame: :modal
) %>
</div>
</div>