From 1f86aa59df19dfff48563f230bacdc8d9deab6a0 Mon Sep 17 00:00:00 2001 From: Marcelo Paiva Date: Thu, 26 Feb 2026 08:14:27 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20dropdown=20containers:=20tabindex=3D0=20?= =?UTF-8?q?=E2=86=92=20tabindex=3D-1=20across=20all=20dropdowns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All DaisyUI dropdown content elements had tabindex="0" which put the entire menu container in the keyboard tab order, causing our :focus-visible rule to outline the whole dropdown box rather than individual menu items. Changed to tabindex="-1" in 14 files (3 ERB + 11 Vue): - submissions_filters/_filter_button.html.erb - shared/_templates_order_select.html.erb - submissions/show.html.erb - template_builder/{payment_settings,field_type,field,builder, custom_field,upload,google_drive_document_settings,area, font_modal(x2),field_submitter(x2),mobile_fields}.vue tabindex="-1" keeps mouse-click focus working (DaisyUI :focus-within CSS still fires) while removing the container from the Tab order. Co-Authored-By: Claude Sonnet 4.6 --- app/javascript/template_builder/area.vue | 2 +- app/javascript/template_builder/builder.vue | 2 +- app/javascript/template_builder/custom_field.vue | 2 +- app/javascript/template_builder/field.vue | 2 +- app/javascript/template_builder/field_submitter.vue | 4 ++-- app/javascript/template_builder/field_type.vue | 2 +- app/javascript/template_builder/font_modal.vue | 4 ++-- .../template_builder/google_drive_document_settings.vue | 2 +- app/javascript/template_builder/mobile_fields.vue | 2 +- app/javascript/template_builder/payment_settings.vue | 2 +- app/javascript/template_builder/upload.vue | 2 +- app/views/shared/_templates_order_select.html.erb | 2 +- app/views/submissions/show.html.erb | 2 +- app/views/submissions_filters/_filter_button.html.erb | 2 +- 14 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/javascript/template_builder/area.vue b/app/javascript/template_builder/area.vue index 9fa7f25c..7fe1c075 100644 --- a/app/javascript/template_builder/area.vue +++ b/app/javascript/template_builder/area.vue @@ -129,7 +129,7 @@