Skip to content

Commit

Permalink
Rename .font-weight-* utilities as .fw-*
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdonarski committed Jan 15, 2024
1 parent 33448df commit a0b12af
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/helpers/spree/admin/base_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def order_time(time)
end

def required_span_tag
content_tag(:span, ' *', class: 'required font-weight-bold text-danger')
content_tag(:span, ' *', class: 'required fw-bold text-danger')
end

def external_page_preview_link(resource, options = {})
Expand Down
4 changes: 2 additions & 2 deletions app/helpers/spree/admin/navigation_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def tab(*args)
link_to(
titleized_label,
destination_url,
class: "sidebar-submenu-item w-100 py-2 py-md-1 ps-5 d-block #{selected ? 'font-weight-bold' : 'text-muted'}"
class: "sidebar-submenu-item w-100 py-2 py-md-1 ps-5 d-block #{selected ? 'fw-bold' : 'text-muted'}"
)
end

Expand Down Expand Up @@ -255,7 +255,7 @@ def configurations_sidebar_menu_item(link_text, url, options = {})
url.ends_with?("#{controller.controller_name.singularize}/edit")

options[:class] = 'sidebar-menu-item d-block w-100'
options[:class] << ' selected font-weight-bold' if options[:is_selected]
options[:class] << ' selected fw-bold' if options[:is_selected]
content_tag(:li, options) do
link_to(link_text, url, class: "#{'text-muted' unless options[:is_selected]} sidebar-submenu-item w-100 py-2 py-md-1 ps-5 d-block")
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/spree/admin/digitals/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<% end %>

<%= f.field_container :attachment, data: {controller: "upload-button"} do %>
<%= f.label :file, Spree.t('admin.digitals.add_new_file'), id: "digital_attachment_#{variant.id}" %> <span class="required font-weight-bold text-danger">*</span><br>
<%= f.label :file, Spree.t('admin.digitals.add_new_file'), id: "digital_attachment_#{variant.id}" %> <span class="required fw-bold text-danger">*</span><br>
<%= f.file_field :attachment, id: "digital_attachment_#{variant.id}", required: true, data: { action: "input->upload-button#buttonState" } %>
<%= hidden_field_tag 'digital[variant_id]', variant.id %>
<%= button Spree.t('admin.digitals.upload'), 'add.svg', 'submit', { data: { upload_button_target: "uploadButton" } } %>
Expand Down
10 changes: 5 additions & 5 deletions app/views/spree/admin/shared/_order_summary.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<% if @order.completed? %>
<li class="list-group-item d-flex justify-content-between align-items-center">
<small data-hook='admin_order_tab_date_completed_title'><%= Spree.t(:date_completed) %></small>
<span class="text-end small font-weight-bold" id='date_complete'>
<span class="text-end small fw-bold" id='date_complete'>
<%= pretty_time(@order.completed_at) %>
</span>
</li>
Expand All @@ -48,14 +48,14 @@
<% if @order.approved? %>
<li class="list-group-item d-flex justify-content-between align-items-center">
<small><%= Spree.t(:approved_at) %></small>
<span class="text-end small font-weight-bold">
<span class="text-end small fw-bold">
<%= pretty_time(@order.approved_at) %>
</span>
</li>
<% if @order.approver.present? %>
<li class="list-group-item d-flex justify-content-between align-items-center">
<small><%= Spree.t(:approver) %></small>
<span class="text-end small font-weight-bold">
<span class="text-end small fw-bold">
<%= link_to @order.approver.email, spree.admin_users_path(@order.approver) %>
</span>
</li>
Expand All @@ -65,14 +65,14 @@
<% if @order.canceled? && @order.canceled_at %>
<li class="list-group-item d-flex justify-content-between align-items-center">
<small><%= Spree.t(:canceled_at) %></small>
<span class="text-end small font-weight-bold">
<span class="text-end small fw-bold">
<%= pretty_time(@order.canceled_at) %>
</span>
</li>
<% if @order.canceler.present? %>
<li class="list-group-item d-flex justify-content-between align-items-center">
<small><%= Spree.t(:canceler) %></small>
<span class="text-end small font-weight-bold">
<span class="text-end small fw-bold">
<%= link_to @order.canceler.email, spree.admin_users_path(@order.canceler) %>
</span>
</li>
Expand Down

0 comments on commit a0b12af

Please sign in to comment.