From 07c4296668e92de413a3b733d008d7a0ad832818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Tue, 18 Aug 2026 13:23:57 -0600 Subject: [PATCH] =?UTF-8?q?Abre=20el=20di=C3=A1logo=20QR=20sobre=20el=20la?= =?UTF-8?q?nzador=20y=20limita=20el=20foco=20al=20teclado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El diálogo aparecía sobre la última vista porque el bloque QR cerraba el menú de apps al tocarlo, no porque navegara: la acción de cliente es una función simple y nunca monta un controlador. Basta con closingMode "none" en ese bloque para que el lanzador se quede de fondo; el resto de los bloques siguen navegando y cerrando como siempre. Cancelar, buscar y abrir dejan al usuario donde estaba, y con una sola sucursal la pestaña del kiosco se abre sin mover el webclient. El anillo de foco pasa a :focus-visible. Con el lanzador ya visible detrás del diálogo, un :focus normal dejaba contorno alrededor de lo último que tocó el mouse. El app actual deja de reutilizar el anillo por lo mismo; en las tarjetas chicas conserva su tinte, que no es un contorno. Co-Authored-By: Claude Opus 5 (1M context) --- .../static/src/webclient/beyond_launcher.scss | 15 +++++++++------ .../static/src/webclient/beyond_launcher.xml | 4 ++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/addons/beyond_base/static/src/webclient/beyond_launcher.scss b/addons/beyond_base/static/src/webclient/beyond_launcher.scss index cee9b79..3ee2e51 100644 --- a/addons/beyond_base/static/src/webclient/beyond_launcher.scss +++ b/addons/beyond_base/static/src/webclient/beyond_launcher.scss @@ -193,11 +193,12 @@ $beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif; flex-grow: 1.18; } - // The design has one "you are here" affordance, the focus ring, so the - // current app (.focus, set by the navbar) reuses it. :focus is the - // literal design state and keeps arrow-key navigation visible. - &:focus, - &.focus { + // Keyboard only (18-aug-2026). A plain :focus also fired on click, and + // now that the QR block answers in place the launcher stays up with a + // ring around whatever the pointer last hit. The current app no longer + // reuses this ring either: it would be a contour a mouse user never + // asked for. + &:focus-visible { outline: 4px solid $beyond-ink; outline-offset: -6px; } @@ -242,8 +243,10 @@ $beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif; border-radius: 20px; transition: background 140ms ease; + // Same rule as the blocks for the contour; the tint stays on the + // current app because a background is not a focus ring. &:hover, - &:focus, + &:focus-visible, &.focus { background: $beyond-surface-hover; } diff --git a/addons/beyond_base/static/src/webclient/beyond_launcher.xml b/addons/beyond_base/static/src/webclient/beyond_launcher.xml index 4f171d4..bc2b235 100644 --- a/addons/beyond_base/static/src/webclient/beyond_launcher.xml +++ b/addons/beyond_base/static/src/webclient/beyond_launcher.xml @@ -73,9 +73,13 @@ +