Fix duplicate ID when deleting repo (#28520)

There is an accessibility issue in the interface when attempting to
delete a repository. When I click on "Delete repository," a dialog box
appears, requiring confirmation to proceed with the repository deletion.
However, when I press the "Repo name" label, the wrong input field gains
focus. The focused field is located behind the dialog and is intended
for renaming the repository.
pull/28496/head^2
David Øvrelid 11 months ago committed by GitHub
parent 14ffdf6173
commit 128eac9e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      templates/repo/migrate/migrating.tmpl
  2. 4
      templates/repo/settings/options.tmpl

@ -73,8 +73,8 @@
</label> </label>
</div> </div>
<div class="required field"> <div class="required field">
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label> <label for="repo_name_to_delete">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<input id="repo_name" name="repo_name" required> <input id="repo_name_to_delete" name="repo_name" required>
</div> </div>
<div class="text right actions"> <div class="text right actions">

@ -921,8 +921,8 @@
</label> </label>
</div> </div>
<div class="required field"> <div class="required field">
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label> <label for="repo_name_to_delete">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<input id="repo_name" name="repo_name" required> <input id="repo_name_to_delete" name="repo_name" required>
</div> </div>
<div class="text right actions"> <div class="text right actions">

Loading…
Cancel
Save