refactor: add missing aria-labels for accessibility compliance

This commit is contained in:
pompurin404 2025-02-03 10:14:48 +08:00
parent 31190e169f
commit fa3c412146
2 changed files with 3 additions and 0 deletions

View File

@ -170,6 +170,7 @@ const GeneralConfig: React.FC = () => {
size="sm"
selectionMode="multiple"
selectedKeys={new Set(envType)}
aria-label="选择环境变量类型"
onSelectionChange={async (v) => {
try {
await patchAppConfig({
@ -363,6 +364,7 @@ const GeneralConfig: React.FC = () => {
className="w-[60%]"
size="sm"
selectedKeys={new Set([customTheme])}
aria-label="选择主题"
onSelectionChange={async (v) => {
try {
await patchAppConfig({ customTheme: v.currentKey as string })

View File

@ -126,6 +126,7 @@ const MihomoConfig: React.FC = () => {
className="w-[150px]"
size="sm"
selectedKeys={new Set([proxyCols])}
aria-label="选择代理节点展示列数"
onSelectionChange={async (v) => {
await patchAppConfig({ proxyCols: v.currentKey as 'auto' | '1' | '2' | '3' | '4' })
}}