mirror of
https://github.com/we-promise/sure.git
synced 2026-04-11 00:04:47 +00:00
* Update selection bar styles and group classes Replaces hardcoded color classes with design token classes for background, border, and text. Updates group and group-hover class names for edit and delete actions to use more specific variants. * make the selection dars the same
16 lines
998 B
Plaintext
16 lines
998 B
Plaintext
<div class="fixed bottom-30 md:bottom-6 z-10 flex items-center justify-between rounded-xl bg-surface-inset border-secondary shadow-border-xs px-4 text-sm text-primary md:w-[420px] w-[90%] py-1.5">
|
|
<div class="flex items-center gap-2">
|
|
<%= check_box_tag "entry_selection", 1, true, class: "checkbox checkbox--light", data: { action: "bulk-select#deselectAll" } %>
|
|
|
|
<p data-bulk-select-target="selectionBarText"></p>
|
|
</div>
|
|
|
|
<div class="flex items-center gap-1 text-secondary">
|
|
<%= form_with url: transactions_bulk_deletion_path, data: { turbo_confirm: CustomConfirm.for_resource_deletion("entry").to_data_attribute, turbo_frame: "_top" } do %>
|
|
<button type="button" data-bulk-select-scope-param="bulk_delete" data-action="bulk-select#submitBulkRequest" class="p-1.5 group/delete hover:bg-inverse flex items-center justify-center rounded-md" title="Delete">
|
|
<%= icon "trash-2", class: "group-hover/delete:text-inverse" %>
|
|
</button>
|
|
<% end %>
|
|
</div>
|
|
</div>
|