diff --git a/Changelog.md b/Changelog.md index 740934193..38fde271b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,7 @@ 🐞 修复问题 - 修复「代理集合」「规则集合」订阅响应较慢时更新误报失败、且不显示真实失败原因的问题 +- 修复读屏软件将普通模式下的侧边栏导航项播报为不可用的可拖拽控件的问题 - 修复通过 URL 导入订阅时,即使导入的订阅并非当前使用的订阅,也会重新加载当前配置的问题 **🖥️ Windows** diff --git a/src/components/layout/layout-sidebar.tsx b/src/components/layout/layout-sidebar.tsx index e01734dca..f1a2be2f2 100644 --- a/src/components/layout/layout-sidebar.tsx +++ b/src/components/layout/layout-sidebar.tsx @@ -100,13 +100,18 @@ export const LayoutSidebar = (props: LayoutSidebarProps) => { const item = navItemMap.get(path) if (!item) return null + // A registered sortable, even a disabled one, gets the drag-and-drop ARIA + // attributes, so screen readers announce every item as a disabled draggable. + if (!menuUnlocked) { + return ( + + {t(item.label)} + + ) + } + return ( - + {(sortable) => ( {t(item.label)}