Skip to content

Commit

Permalink
Fixed Report Abuse Page's Accessibility (#4001)
Browse files Browse the repository at this point in the history
Fixes #4002. Relevant to [VSTS #395879](https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?id=395879&_a=edit). This help-text bug was for the sign-in page, but this also affects the Report Abuse page.

* Fixed accessibility of email field in report abuse page
* Fixed signature accessibility
  • Loading branch information
loic-sharma authored May 26, 2017
1 parent 3ac8517 commit 863b88b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/NuGetGallery/Views/Packages/ReportAbuse.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
<div class="form-field">
@if (!Model.ConfirmedUser)
{
@Html.LabelFor(m => m.Email)
@Html.EditorFor(m => m.Email)
<span class="field-hint-message">Provide your email address so we can follow up with you.</span>
@Html.LabelFor(m => m.Email, new { id = "ReportAbuse_Email_Label" })
@Html.EditorFor(m => m.Email, new { htmlAttributes = new { aria_labelledby = "ReportAbuse_Email_Label ReportAbuse_Email_Help" } })
<span class="field-hint-message" id="ReportAbuse_Email_Help">Provide your email address so we can follow up with you.</span>
@Html.ValidationMessageFor(m => m.Email)
}
else
Expand Down Expand Up @@ -83,9 +83,9 @@
<p>
As applicable under 17 U.S.C. 512(f), I acknowledge that I may be subject to liability for damages if I knowingly materially misrepresent that material or activity is infringing.
</p>
@Html.LabelFor(m => m.Signature)
@Html.EditorFor(m => m.Signature)
<span class="field-hint-message">Sign with your real name.</span>
@Html.LabelFor(m => m.Signature, new { id = "ReportAbuse_Signature_Label" })
@Html.EditorFor(m => m.Signature, new { htmlAttributes = new { aria_labelledby = "ReportAbuse_Signature_Label ReportAbuse_Signature_Help" } })
<span class="field-hint-message" id="ReportAbuse_Signature_Help">Sign with your real name.</span>
@Html.ValidationMessageFor(m => m.Signature)
</div>
<div class="infringement-claim-requirements">You can also send us an email at <a href="mailto:admin@nuget.org">admin@nuget.org</a></div>
Expand Down

0 comments on commit 863b88b

Please sign in to comment.