Setup proper focus handling for mobile on the card perma's board picker

This commit is contained in:
Adrien Maston
2026-01-19 15:33:12 +01:00
parent 44732a345b
commit 511396144a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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)
+2 -2
View File
@@ -5,10 +5,10 @@
dialog_target: "dialog",
navigable_list_focus_on_selection_value: false,
navigable_list_actionable_items_value: true } do %>
<strong class="popup__title pad-inline-half">Move this card to…</strong>
<%= 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" } %>
<ul class="popup__list margin-block-start-half margin-none-block-end" data-filter-target="list">
<% @boards.each do |board| %>