mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +08:00
refactor: add missing aria-labels for accessibility compliance
This commit is contained in:
parent
31190e169f
commit
fa3c412146
@ -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 })
|
||||
|
||||
@ -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' })
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user