From 511396144a3d7aa0f14c805db60deaa4a4b3feba Mon Sep 17 00:00:00 2001 From: Adrien Maston Date: Mon, 19 Jan 2026 15:33:12 +0100 Subject: [PATCH] Setup proper focus handling for mobile on the card perma's board picker --- app/helpers/filters_helper.rb | 2 +- app/views/cards/boards/edit.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/filters_helper.rb b/app/helpers/filters_helper.rb index 35605b9dc..0d71685a7 100644 --- a/app/helpers/filters_helper.rb +++ b/app/helpers/filters_helper.rb @@ -41,7 +41,7 @@ module FiltersHelper end def filter_title(title) - tag.strong title, class: "popup__title", tabindex: "-1", data: { dialog_target: "focusTouch" } + tag.strong title, class: "popup__title pad-inline-half", tabindex: "-1", data: { dialog_target: "focusTouch" } end def collapsible_nav_section(title, **properties, &block) diff --git a/app/views/cards/boards/edit.html.erb b/app/views/cards/boards/edit.html.erb index 265dc0a9e..3dd6aeb31 100644 --- a/app/views/cards/boards/edit.html.erb +++ b/app/views/cards/boards/edit.html.erb @@ -5,10 +5,10 @@ dialog_target: "dialog", navigable_list_focus_on_selection_value: false, navigable_list_actionable_items_value: true } do %> - Move this card to… + <%= filter_title "Move this card to…" %> <%= text_field_tag :search, nil, placeholder: "Filter…", class: "input input--transparent txt-small margin-block-half font-weight-normal", autofocus: true, - type: "search", autocorrect: "off", autocomplete: "off", data: { "1p-ignore": "true", filter_target: "input", action: "input->filter#filter" } %> + type: "search", autocorrect: "off", autocomplete: "off", data: { "1p-ignore": "true", filter_target: "input", dialog_target: "focusMouse", action: "input->filter#filter" } %>