Metadata-level security toggles need visible focus

未关闭 适合新手
#6,531 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃

调研方向

找到 Administer 页面的 Metadata 选项卡中的元数据安全开关,然后检查其键盘焦点行为以及 Edit 按钮的样式。通过按 Tab 键浏览启用了元数据级安全控件的项目来重现问题;当使用键盘导航时开关能获得可见焦点,即为完成。

由索引模型根据 Issue 内容生成。

描述

accessibility affects: 10.x affects: main bug ux

Describe the bug

Metadata-level security toggles need visible focus so that they can be fully operable via keyboard.

To Reproduce

  1. Enable Metadata-level security controls (See documentation) for some test field.
  2. Go to the Administer page, Metadata tab of an item with metadata-level security controls enabled. For example on demo site, https://demo.dspace.org/entities/person/5d0098fc-344a-4067-a57d-457092b72e82/edit/metadata
  3. Try to navigate the page via the "Tab" key; you'll see focus go to all the various Edit buttons but skip over the toggle element next to person.birthDate (in the demo site example from step 2)
  4. You can actually click space to activate the toggle, but the element has no focus styling so you can't see that it gets focus

Expected behavior

The toggle component should have focus styling just like the other buttons on the metadata administration page.

See an example of focus styling on the Edit button:

Screenshot 2026-11-12 at 2 03 46 PM

Related

This element was introduced with the first half of DSpace-CRIS features via https://github.com/DSpace/dspace-angular/pull/5145.

主要语言
TypeScript
星标
180
派生
577
平均合并
2 天 1 小时
30 天内合并 PR
100

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DSpace/dspace-angular 的其他 Issue

查看 DSpace/dspace-angular 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。