@@ -53,7 +53,7 @@
<% end %>
- <%= line_item.single_money.to_html %>
+ <%= line_item.single_money.to_html %>
|
<%= form_for(line_item, url: solidus_admin.order_line_item_path(@order, line_item), method: :delete) do |f| %>
diff --git a/admin/app/components/solidus_admin/orders/cart/result/component.html.erb b/admin/app/components/solidus_admin/orders/cart/result/component.html.erb
index ab39d30af92..cf8faf803fe 100644
--- a/admin/app/components/solidus_admin/orders/cart/result/component.html.erb
+++ b/admin/app/components/solidus_admin/orders/cart/result/component.html.erb
@@ -10,8 +10,8 @@
alt: @variant.name
) %>
- <%= @variant.name %>
-
+ <%= @variant.name %>
+
SKU:
<%= @variant.sku %>
<%= @variant.options_text.presence&.prepend("- ") %>
@@ -19,8 +19,8 @@
- <%= render component("products/stock").from_variant(@variant) %>
- <%= @variant.display_price.to_html %>
+ <%= render component("products/stock").from_variant(@variant) %>
+ <%= @variant.display_price.to_html %>
<% end %>
<% end %>
diff --git a/admin/app/components/solidus_admin/orders/index/component.html.erb b/admin/app/components/solidus_admin/orders/index/component.html.erb
index bb2ca90f453..f6d31446202 100644
--- a/admin/app/components/solidus_admin/orders/index/component.html.erb
+++ b/admin/app/components/solidus_admin/orders/index/component.html.erb
@@ -1,6 +1,6 @@
-
+
<%= title %>
diff --git a/admin/app/components/solidus_admin/orders/show/address/component.html.erb b/admin/app/components/solidus_admin/orders/show/address/component.html.erb
index d97d4ebbefb..13059d4e6c0 100644
--- a/admin/app/components/solidus_admin/orders/show/address/component.html.erb
+++ b/admin/app/components/solidus_admin/orders/show/address/component.html.erb
@@ -42,7 +42,7 @@
value: '1'
) %>
-
+
<%= t(".use_this_address.#{@type}") %>
diff --git a/admin/app/components/solidus_admin/orders/show/component.html.erb b/admin/app/components/solidus_admin/orders/show/component.html.erb
index 992fb1580f9..f2e8cbbee8b 100644
--- a/admin/app/components/solidus_admin/orders/show/component.html.erb
+++ b/admin/app/components/solidus_admin/orders/show/component.html.erb
@@ -23,19 +23,19 @@
<% panel.with_section(class: 'flex flex-col gap-6') do %>
- <%= t(".customer") %>
+ <%= t(".customer") %>
<% if @order.user %>
- <%= customer_name(@order.user) || tag.span(t('.no_name'), class: "text-gray-500") %>
- <%= link_to @order.user.email, spree.admin_user_path(@order.user) %>
- <%= t(".orders_count", count: @order.user.orders.complete.count) %>
+ <%= customer_name(@order.user) || tag.span(t('.no_name'), class: "text-gray-500") %>
+ <%= link_to @order.user.email, spree.admin_user_path(@order.user) %>
+ <%= t(".orders_count", count: @order.user.orders.complete.count) %>
<% else %>
<%= render component('orders/show/customer_search').new(order: @order) %>
<% end %>
- <%= t('.order_email') %>
-
+ <%= t('.order_email') %>
+
<% if @order.email? %>
<%= @order.email %>
<% else %>
@@ -45,8 +45,8 @@
- <%= @order.class.human_attribute_name(:ship_address) %>
-
+ <%= @order.class.human_attribute_name(:ship_address) %>
+
<% if @order.ship_address %>
<%= format_address @order.ship_address %>
<% else %>
@@ -56,8 +56,8 @@
- <%= @order.class.human_attribute_name(:bill_address) %>
-
+ <%= @order.class.human_attribute_name(:bill_address) %>
+
<% if @order.bill_address.blank? %>
<%= link_to t(".add_billing"), solidus_admin.edit_order_bill_address_path(@order), class: 'body-link' %>
<% elsif @order.bill_address == @order.ship_address %>
diff --git a/admin/app/components/solidus_admin/orders/show/customer_search/result/component.html.erb b/admin/app/components/solidus_admin/orders/show/customer_search/result/component.html.erb
index ebe5c4ef2dd..1762575ab3e 100644
--- a/admin/app/components/solidus_admin/orders/show/customer_search/result/component.html.erb
+++ b/admin/app/components/solidus_admin/orders/show/customer_search/result/component.html.erb
@@ -8,8 +8,8 @@
<% end %>
diff --git a/admin/app/components/solidus_admin/orders/show/email/component.html.erb b/admin/app/components/solidus_admin/orders/show/email/component.html.erb
index 9bdff03edc0..ca6023404e2 100644
--- a/admin/app/components/solidus_admin/orders/show/email/component.html.erb
+++ b/admin/app/components/solidus_admin/orders/show/email/component.html.erb
@@ -3,9 +3,9 @@
<%= render component("ui/modal").new(title: t(".title"), close_path: close_path) do |modal| %>
<%= form_for @order, url: close_path, html: { id: form_id} do |f| %>
<%= render component("ui/forms/field").text_field(f, :email) %>
-
<% end %>
diff --git a/admin/app/components/solidus_admin/refunds_and_returns/component.html.erb b/admin/app/components/solidus_admin/refunds_and_returns/component.html.erb
index b497f129ae3..52d2f801238 100644
--- a/admin/app/components/solidus_admin/refunds_and_returns/component.html.erb
+++ b/admin/app/components/solidus_admin/refunds_and_returns/component.html.erb
@@ -2,7 +2,7 @@
<%= page_header do %>
<%= page_header_title safe_join([
tag.div(t(".title")),
- tag.div(t(".subtitle"), class: "body-small text-gray-500"),
+ tag.div(t(".subtitle"), class: "font-normal text-sm text-gray-500"),
]) %>
<% end %>
<%= page_header do %>
diff --git a/admin/app/components/solidus_admin/shipping/component.html.erb b/admin/app/components/solidus_admin/shipping/component.html.erb
index 16c2324254d..4b719650a67 100644
--- a/admin/app/components/solidus_admin/shipping/component.html.erb
+++ b/admin/app/components/solidus_admin/shipping/component.html.erb
@@ -2,7 +2,7 @@
<%= page_header do %>
<%= page_header_title safe_join([
tag.div(t(".title")),
- tag.div(t(".subtitle"), class: "body-small text-gray-500"),
+ tag.div(t(".subtitle"), class: "font-normal text-sm text-gray-500"),
]) %>
<% end %>
diff --git a/admin/app/components/solidus_admin/taxes/component.html.erb b/admin/app/components/solidus_admin/taxes/component.html.erb
index 2dfa09155ba..3dc1fcaf24e 100644
--- a/admin/app/components/solidus_admin/taxes/component.html.erb
+++ b/admin/app/components/solidus_admin/taxes/component.html.erb
@@ -2,7 +2,7 @@
<%= page_header do %>
<%= page_header_title safe_join([
tag.div(t(".title")),
- tag.div(t(".subtitle"), class: "body-small text-gray-500"),
+ tag.div(t(".subtitle"), class: "font-normal text-sm text-gray-500"),
]) %>
<% end %>
diff --git a/admin/app/components/solidus_admin/ui/dropdown/component.rb b/admin/app/components/solidus_admin/ui/dropdown/component.rb
index e45707f3d01..28f10366fa9 100644
--- a/admin/app/components/solidus_admin/ui/dropdown/component.rb
+++ b/admin/app/components/solidus_admin/ui/dropdown/component.rb
@@ -20,7 +20,8 @@ def initialize(text: nil, size: :m, direction: :left, **attributes)
@attributes[:"data-controller"] = "#{stimulus_id} #{attributes[:"data-controller"]}"
@attributes[:"data-action"] = "turbo:before-cache@window->#{stimulus_id}#close #{attributes[:"data-action"]}"
@attributes[:class] = "
- #{@size == :m ? 'body-text' : 'body-small'}
+ font-normal
+ #{@size == :m ? 'text-base' : 'text-sm'}
#{@attributes[:class]}
"
end
diff --git a/admin/app/components/solidus_admin/ui/forms/field/component.html.erb b/admin/app/components/solidus_admin/ui/forms/field/component.html.erb
index 388eaddcef8..af9538f8acf 100644
--- a/admin/app/components/solidus_admin/ui/forms/field/component.html.erb
+++ b/admin/app/components/solidus_admin/ui/forms/field/component.html.erb
@@ -2,8 +2,7 @@
<%= @label %>
<%= render component('ui/toggletip').new(text: @tip) if @tip.present? %>
@@ -19,7 +18,7 @@
<% if @hint.present? || @error.present? %>
diff --git a/admin/app/components/solidus_admin/ui/forms/input/component.rb b/admin/app/components/solidus_admin/ui/forms/input/component.rb
index 1c7441eb4ec..84edd89cdee 100644
--- a/admin/app/components/solidus_admin/ui/forms/input/component.rb
+++ b/admin/app/components/solidus_admin/ui/forms/input/component.rb
@@ -2,9 +2,9 @@
class SolidusAdmin::UI::Forms::Input::Component < SolidusAdmin::BaseComponent
SIZES = {
- s: "form-control-sm px-3 py-1.5 body-small",
- m: "form-control-md px-3 py-1.5 body-small",
- l: "form-control-lg px-3 py-1.5 body-text"
+ s: "form-control-sm px-3 py-1.5 font-normal text-sm",
+ m: "form-control-md px-3 py-1.5 font-normal text-sm",
+ l: "form-control-lg px-3 py-1.5 font-normal text-base"
}.freeze
HEIGHTS = {
diff --git a/admin/app/components/solidus_admin/ui/forms/switch_field/component.html.erb b/admin/app/components/solidus_admin/ui/forms/switch_field/component.html.erb
index fd9b5a12bc9..0e43e2114d1 100644
--- a/admin/app/components/solidus_admin/ui/forms/switch_field/component.html.erb
+++ b/admin/app/components/solidus_admin/ui/forms/switch_field/component.html.erb
@@ -1,6 +1,6 @@
- <%= @label %>
+ <%= @label %>
<%= render component("ui/toggletip").new(text: @tip) if @tip.present? %>
@@ -10,7 +10,7 @@
<% if @hint.present? || @error.present? %>
<%= tag.span @hint if @hint.present? %>
diff --git a/admin/app/components/solidus_admin/ui/panel/component.html.erb b/admin/app/components/solidus_admin/ui/panel/component.html.erb
index d74f69482d9..041c3e95ea1 100644
--- a/admin/app/components/solidus_admin/ui/panel/component.html.erb
+++ b/admin/app/components/solidus_admin/ui/panel/component.html.erb
@@ -24,7 +24,7 @@
<% if @title %>
- <%= @title %>
+ <%= @title %>
<%= render component("ui/toggletip").new(text: @title_hint) if @title_hint %>
diff --git a/admin/app/components/solidus_admin/ui/resource_item/component.html.erb b/admin/app/components/solidus_admin/ui/resource_item/component.html.erb
index 096896350a5..a8aef8b5a56 100644
--- a/admin/app/components/solidus_admin/ui/resource_item/component.html.erb
+++ b/admin/app/components/solidus_admin/ui/resource_item/component.html.erb
@@ -4,7 +4,7 @@
alt: @title,
) if @thumbnail %>
- <%= @title %>
- <%= @subtitle %>
+ <%= @title %>
+ <%= @subtitle %>
diff --git a/admin/app/components/solidus_admin/ui/tab/component.rb b/admin/app/components/solidus_admin/ui/tab/component.rb
index f9b74dd4bee..a943b57bb57 100644
--- a/admin/app/components/solidus_admin/ui/tab/component.rb
+++ b/admin/app/components/solidus_admin/ui/tab/component.rb
@@ -2,9 +2,9 @@
class SolidusAdmin::UI::Tab::Component < SolidusAdmin::BaseComponent
SIZES = {
- s: %w[h-7 px-1.5 body-small-bold],
- m: %w[h-9 px-3 body-small-bold],
- l: %w[h-12 px-4 body-text-bold],
+ s: %w[h-7 px-1.5 font-semibold text-sm],
+ m: %w[h-9 px-3 font-semibold text-sm],
+ l: %w[h-12 px-4 font-semibold text-base],
}
def initialize(text:, tag: :a, size: :m, current: false, disabled: false, **attributes)
diff --git a/admin/app/components/solidus_admin/ui/toast/component.html.erb b/admin/app/components/solidus_admin/ui/toast/component.html.erb
index 7e1e97c066a..4cca3b3b03e 100644
--- a/admin/app/components/solidus_admin/ui/toast/component.html.erb
+++ b/admin/app/components/solidus_admin/ui/toast/component.html.erb
@@ -15,7 +15,7 @@
>
<%= icon_tag(@icon, class: 'w-[1.125rem] h-[1.125rem] mr-2 fill-current') if @icon %>
- <%= @text %>
+ <%= @text %>
|