Skip to content

Commit

Permalink
Moved aria-labelledby so that announcer says correctly radio button g…
Browse files Browse the repository at this point in the history
…roups. (#8538)
  • Loading branch information
dannyjdev committed Apr 26, 2021
1 parent 5a4b471 commit 69898de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/NuGetGallery/Views/Users/ApiKeys.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,11 @@
<div class="radio">
<div class="label-sibling">
<input name="PushScope" type="radio" value="@NuGetScopes.PackagePush"
aria-labelledby="select-scopes-push-package select-scopes"
data-bind="checked: PushScope, enable: PushNewEnabled,
attr: { id: PackagePushId }" />
</div>
<label id="select-scopes-push-package" data-bind="attr: { for: PackagePushId }">
<label id="select-scopes-push-package" data-bind="attr: { for: PackagePushId }"
aria-labelledby="select-scopes-push-package select-scopes">
@NuGetScopes.Describe(NuGetScopes.PackagePush)
</label>
</div>
Expand All @@ -367,11 +367,11 @@
<div class="radio">
<div class="label-sibling">
<input name="PushScope" type="radio" value="@NuGetScopes.PackagePushVersion"
aria-labelledby="select-scopes-push-package-version select-scopes"
data-bind="checked: PushScope, enable: PushExistingEnabled,
attr: { id: PackagePushVersionId }" />
</div>
<label id="select-scopes-push-package-version" data-bind="attr: { for: PackagePushVersionId }">
<label id="select-scopes-push-package-version" data-bind="attr: { for: PackagePushVersionId }"
aria-labelledby="select-scopes-push-package-version select-scopes">
@NuGetScopes.Describe(NuGetScopes.PackagePushVersion)
</label>
</div>
Expand Down

0 comments on commit 69898de

Please sign in to comment.