mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-29 06:32:52 +00:00
fix(a11y): choosing a Workspace section keeps keyboard focus on its link (#32913)
This commit is contained in:
parent
c90536e21d
commit
20f97c703f
1 changed files with 5 additions and 0 deletions
|
|
@ -151,6 +151,7 @@
|
|||
{#if $user?.role === 'admin' || $user?.permissions?.workspace?.models}
|
||||
<a
|
||||
draggable="false"
|
||||
data-sveltekit-keepfocus
|
||||
aria-current={activeWorkspaceSection === 'models' ? 'page' : null}
|
||||
class="min-w-fit px-1 text-sm inline-flex items-center gap-1 {activeWorkspaceSection ===
|
||||
'models'
|
||||
|
|
@ -168,6 +169,7 @@
|
|||
{#if $user?.role === 'admin' || $user?.permissions?.workspace?.knowledge}
|
||||
<a
|
||||
draggable="false"
|
||||
data-sveltekit-keepfocus
|
||||
aria-current={activeWorkspaceSection === 'knowledge' ? 'page' : null}
|
||||
class="min-w-fit px-1 text-sm inline-flex items-center gap-1 {activeWorkspaceSection ===
|
||||
'knowledge'
|
||||
|
|
@ -185,6 +187,7 @@
|
|||
{#if $user?.role === 'admin' || $user?.permissions?.workspace?.prompts}
|
||||
<a
|
||||
draggable="false"
|
||||
data-sveltekit-keepfocus
|
||||
aria-current={activeWorkspaceSection === 'prompts' ? 'page' : null}
|
||||
class="min-w-fit px-1 text-sm inline-flex items-center gap-1 {activeWorkspaceSection ===
|
||||
'prompts'
|
||||
|
|
@ -202,6 +205,7 @@
|
|||
{#if $user?.role === 'admin' || $user?.permissions?.workspace?.skills}
|
||||
<a
|
||||
draggable="false"
|
||||
data-sveltekit-keepfocus
|
||||
aria-current={activeWorkspaceSection === 'skills' ? 'page' : null}
|
||||
class="min-w-fit px-1 text-sm inline-flex items-center gap-1 {activeWorkspaceSection ===
|
||||
'skills'
|
||||
|
|
@ -219,6 +223,7 @@
|
|||
{#if $config?.features?.enable_tools && ($user?.role === 'admin' || $user?.permissions?.workspace?.tools)}
|
||||
<a
|
||||
draggable="false"
|
||||
data-sveltekit-keepfocus
|
||||
aria-current={activeWorkspaceSection === 'tools' ? 'page' : null}
|
||||
class="min-w-fit px-1 text-sm inline-flex items-center gap-1 {activeWorkspaceSection ===
|
||||
'tools'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue