From 863b88bd16d551428b2b9b1908fbea73f93c6bc3 Mon Sep 17 00:00:00 2001 From: Loic Sharma Date: Fri, 26 May 2017 09:32:35 -0700 Subject: [PATCH] Fixed Report Abuse Page's Accessibility (#4001) 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 --- src/NuGetGallery/Views/Packages/ReportAbuse.cshtml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/NuGetGallery/Views/Packages/ReportAbuse.cshtml b/src/NuGetGallery/Views/Packages/ReportAbuse.cshtml index 3e85df6b2b..732648d04f 100644 --- a/src/NuGetGallery/Views/Packages/ReportAbuse.cshtml +++ b/src/NuGetGallery/Views/Packages/ReportAbuse.cshtml @@ -36,9 +36,9 @@
@if (!Model.ConfirmedUser) { - @Html.LabelFor(m => m.Email) - @Html.EditorFor(m => m.Email) - Provide your email address so we can follow up with you. + @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" } }) + Provide your email address so we can follow up with you. @Html.ValidationMessageFor(m => m.Email) } else @@ -83,9 +83,9 @@

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.

- @Html.LabelFor(m => m.Signature) - @Html.EditorFor(m => m.Signature) - Sign with your real name. + @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" } }) + Sign with your real name. @Html.ValidationMessageFor(m => m.Signature)
You can also send us an email at admin@nuget.org