Skip to content

Commit

Permalink
refactor: add missing aria-labels for accessibility compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Feb 3, 2025
1 parent 31190e1 commit fa3c412
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/src/components/settings/general-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ const GeneralConfig: React.FC = () => {
size="sm"
selectionMode="multiple"
selectedKeys={new Set(envType)}
aria-label="选择环境变量类型"
onSelectionChange={async (v) => {
try {
await patchAppConfig({
Expand Down Expand Up @@ -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 })
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/components/settings/mihomo-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
}}
Expand Down

0 comments on commit fa3c412

Please sign in to comment.