mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-23 08:24:37 +00:00
fix: use button to replace anchor elements without href (#40338)
Elements `<a>` without `href` are not focus-able, screen readers didn't expose it as a button. Use `<button type="button">` for these elements, and fix what the conversion exposed: - Disabled reactions and the copy-content button use `aria-disabled`, because native `disabled` suppresses their tooltips - The random label color button gets a label - Hover, disabled and alignment styles that only matched `<a>` apply to the buttons - Unpinning an issue with the keyboard works, and removing a non-permitted "blocked by" dependency sends the right type Fixes: https://github.com/go-gitea/gitea/issues/40337 Assisted-by: Claude Code:claude-opus-5-5 --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
51 files changed
+162
-147
No files matched your search
@@ -44,6 +44,9 @@
|
||||
}
|
||||
|
||||
.color-picker-combo .precolors .color {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
|
||||
Reference in new issue
Block a user