Files
sure/app/views/accounts/new/_container.html.erb
Guillem Arias Fauste 922b8853a9 fix(ds): add-account menu affordance — right-size close, clickable rows (#2276)
The account picker ("What would you like to add?" / "How do you want to add
it?") had affordance gaps:

- The close (x) and back (arrow-left) buttons were size: lg, oversized vs every
  other modal close. Drop to size: md.
- The type/method rows had a hover background but no rest-state cue that they
  navigate. Add a trailing chevron (subdued, brightens on hover) so they read as
  actionable, and move the method-selector rows onto the theme-aware
  hover:bg-surface-hover token (were hover:bg-surface).
2026-06-11 15:43:49 +02:00

54 lines
2.4 KiB
Plaintext

<%# locals: (title:, back_path: nil) %>
<%= render DS::Dialog.new do |dialog| %>
<div class="flex flex-col relative" data-controller="list-keyboard-navigation">
<div class="border-b border-tertiary md:border-alpha-black-25 px-4 pb-4 text-primary flex items-center justify-between gap-2">
<div class="flex items-center gap-2">
<% if back_path %>
<%= render DS::Link.new(
variant: "icon",
icon: "arrow-left",
href: back_path,
size: "md"
) %>
<% end %>
<span class="text-primary"><%= title %></span>
</div>
<%= icon("x", as_button: true, size: "md", data: { action: "DS--dialog#close" }) %>
</div>
<div class="p-2 text-subdued">
<button hidden data-controller="hotkey" data-hotkey="k,K,ArrowUp,ArrowLeft" data-action="list-keyboard-navigation#focusPrevious">Previous</button>
<button hidden data-controller="hotkey" data-hotkey="j,J,ArrowDown,ArrowRight" data-action="list-keyboard-navigation#focusNext">Next</button>
<%= yield %>
</div>
<div class="border-t border-alpha-black-25 px-4 pt-4 text-secondary text-sm justify-between hidden md:flex">
<div class="flex space-x-5">
<div class="flex items-center space-x-2">
<span><%= t(".select") %></span>
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-5 h-5 shrink-0 grow-0 items-center justify-center">
<%= icon("corner-down-left", size: "xs") %>
</kbd>
</div>
<div class="flex items-center space-x-2">
<span><%= t(".navigate") %></span>
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-5 h-5 shrink-0 grow-0 items-center justify-center">
<%= icon("arrow-up", size: "xs") %>
</kbd>
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-5 h-5 shrink-0 grow-0 items-center justify-center">
<%= icon("arrow-down", size: "xs") %>
</kbd>
</div>
</div>
<div class="flex items-center space-x-2">
<button data-action="DS--dialog#close"><%= t(".close") %></button>
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-8 h-5 shrink-0 grow-0 items-center justify-center text-xs">ESC</kbd>
</div>
</div>
</div>
<% end %>