aboutsummaryrefslogtreecommitdiffstats
path: root/build.go
diff options
context:
space:
mode:
authorXinyu Zhou <i@sourcehut.net>2022-11-24 20:29:43 +0800
committerGitHub <noreply@github.com>2022-11-24 20:29:43 +0800
commit26f941fbdac73844a93c902ce6d1144175ff23ed (patch)
tree1b5f7948730c7d3239463dc3580bae1372287cd8 /build.go
parentb2269dedf20c1186b5348a659ef55c4d7ec69f44 (diff)
downloadgitea-26f941fbdac73844a93c902ce6d1144175ff23ed.tar.gz
gitea-26f941fbdac73844a93c902ce6d1144175ff23ed.zip
Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562)
This patch: - Use `<button>` replace anchor link `<a>` in **_Delete/Restore Branch_** button to avoid unexpected page jump before restore branch actually done. - Also replace right side buttons with `<button>` in branch list, let some screen readers know they are buttons. ## Before click restore branch -> restore triggered -> page refreshed, but branch status not update -> manually refresh page <details> https://user-images.githubusercontent.com/76462613/197389108-5a0bd259-0455-40b2-92ac-4326900276f8.mp4 </details> ## After waiting restore done -> page refresh -> branch status update <details> https://user-images.githubusercontent.com/76462613/197428683-616fcbd2-70f9-4572-bf76-e0b7f77b6dd7.mp4 </details> Signed-off-by: baronbunny <its@baronbunny.cn> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'build.go')
0 files changed, 0 insertions, 0 deletions