Skip to content

Commit

Permalink
feat(theme): 更新主题配置,添加无障碍标签
Browse files Browse the repository at this point in the history
  • Loading branch information
Leetfs committed Sep 8, 2024
1 parent a8f8708 commit b92cfb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/vitepress-theme-project-trans/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ function genConfig() {
selectText: '选择',
navigateText: '切换',
closeText: '关闭',
// 无障碍(ARIA)标签,用于描述键盘导航操作
navigateUpKeyAriaLabel: '上箭头',
navigateDownKeyAriaLabel: '下箭头',
selectKeyAriaLabel: '回车',
closeKeyAriaLabel: '退出'
},
},
},
Expand Down

0 comments on commit b92cfb6

Please sign in to comment.