From daf770032c2ee9828bbb7ba664ba10bfd0ea8a02 Mon Sep 17 00:00:00 2001 From: slegarraga <64795732+slegarraga@users.noreply.github.com> Date: Fri, 20 Feb 2026 22:54:35 -0300 Subject: [PATCH] fix(web): prevent focus outlines from being clipped in sidebars Add start padding (ps-1) to sidebar content wrappers so that focus-visible outlines on NavbarItem links are not clipped by the parent container's overflow. The NavbarItem component renders links with rounded-e-full styling that sit flush against the left edge of the scrollable sidebar. When focused, the browser's outline extends outside the element boundary and gets clipped by the overflow-auto on the sidebar's scroll container. Adding 4px of start padding provides space for the outline to render fully. Applied to both the admin sidebar (AdminPageLayout) and the user sidebar (sidebar.svelte) for consistency. Fixes #19498 --- web/src/lib/components/layouts/AdminPageLayout.svelte | 2 +- web/src/lib/components/sidebar/sidebar.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/lib/components/layouts/AdminPageLayout.svelte b/web/src/lib/components/layouts/AdminPageLayout.svelte index f38675c47e205..9bc413e64cb2c 100644 --- a/web/src/lib/components/layouts/AdminPageLayout.svelte +++ b/web/src/lib/components/layouts/AdminPageLayout.svelte @@ -27,7 +27,7 @@ bind:open={sidebarStore.isOpen} class="border-none shadow-none h-full flex flex-col justify-between gap-2" > -