mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00: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"
|
size="sm"
|
||||||
selectionMode="multiple"
|
selectionMode="multiple"
|
||||||
selectedKeys={new Set(envType)}
|
selectedKeys={new Set(envType)}
|
||||||
|
aria-label="选择环境变量类型"
|
||||||
onSelectionChange={async (v) => {
|
onSelectionChange={async (v) => {
|
||||||
try {
|
try {
|
||||||
await patchAppConfig({
|
await patchAppConfig({
|
||||||
@ -363,6 +364,7 @@ const GeneralConfig: React.FC = () => {
|
|||||||
className="w-[60%]"
|
className="w-[60%]"
|
||||||
size="sm"
|
size="sm"
|
||||||
selectedKeys={new Set([customTheme])}
|
selectedKeys={new Set([customTheme])}
|
||||||
|
aria-label="选择主题"
|
||||||
onSelectionChange={async (v) => {
|
onSelectionChange={async (v) => {
|
||||||
try {
|
try {
|
||||||
await patchAppConfig({ customTheme: v.currentKey as string })
|
await patchAppConfig({ customTheme: v.currentKey as string })
|
||||||
|
|||||||
@ -126,6 +126,7 @@ const MihomoConfig: React.FC = () => {
|
|||||||
className="w-[150px]"
|
className="w-[150px]"
|
||||||
size="sm"
|
size="sm"
|
||||||
selectedKeys={new Set([proxyCols])}
|
selectedKeys={new Set([proxyCols])}
|
||||||
|
aria-label="选择代理节点展示列数"
|
||||||
onSelectionChange={async (v) => {
|
onSelectionChange={async (v) => {
|
||||||
await patchAppConfig({ proxyCols: v.currentKey as 'auto' | '1' | '2' | '3' | '4' })
|
await patchAppConfig({ proxyCols: v.currentKey as 'auto' | '1' | '2' | '3' | '4' })
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user