Abre el diálogo QR sobre el lanzador y limita el foco al teclado

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) <noreply@anthropic.com>
This commit is contained in:
Jorem JuárezandClaude Opus 5 committed 2026-08-18 13:23:57 -06:00
1 parent ad929f00fc
commit 07c4296668
2 files changed
+13 -6

No files matched your search

@@ -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;
}
@@ -73,9 +73,13 @@
</DropdownItem>
</t>
<t t-foreach="apps" t-as="app" t-key="app.id">
<!-- closingMode none: this app answers in place (a dialog
or a new tab), so the launcher has to stay up behind
it. Every other block navigates and closes as usual. -->
<DropdownItem
t-if="app.xmlid === 'beyond_attendance_qr.menu_kiosco_app'"
class="{ 'o_app': true, 'beyond_block': true, 'beyond_block_qr': true, focus: menuService.getCurrentApp() === app }"
closingMode="'none'"
onSelected="() => this.onNavBarDropdownItemSelection(app)"
attrs="{ href: getMenuItemHref(app), 'data-menu-xmlid': app.xmlid, 'data-section': app.id }"
>