Skip to content

Commit 547aba3

Browse files
authored
Merge pull request #9157 from NuGet/dev
[ReleasePrep][2022.07.06]RI of dev into main
2 parents 727b1d6 + 5fd0932 commit 547aba3

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/Bootstrap/less/theme/common-readme.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
tr:nth-child(even) {
2525
background-color: @readme-table-bg-color;
26+
a {
27+
color: @readme-table-link-color
28+
}
2629
}
2730

2831
// We added boostrap extension in Markdig to render markdown file, it adds .img-fluid class to all images links <img>,

src/Bootstrap/less/variables.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
@table-border-color: #ddd;
144144

145145
@readme-table-bg-color: #f2f2f2;
146+
@readme-table-link-color: #2d6da4;
146147

147148
//== Buttons
148149
//

src/NuGetGallery/App_Code/ViewHelpers.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ var hlp = new AccordionHelper(name, formModelStatePrefix, expanded, page);
645645
$submit.before(
646646
'<div id="recaptcha" class="g-recaptcha" '
647647
+ 'data-sitekey="@reCaptchaPublicKey" data-size="invisible" '
648-
+ 'data-callback="onSubmit" data-tabindex="-1"></div>');
648+
+ 'data-callback="onSubmit" data-tabindex="1"></div>');
649649

650650
var $form = $submit.parents('form')
651651
$submit.click(function (e) {
@@ -660,7 +660,7 @@ var hlp = new AccordionHelper(name, formModelStatePrefix, expanded, page);
660660
}
661661

662662
window.onload = function () {
663-
$('div.g-recaptcha iframe').attr({ tabindex: "-1" });
663+
$('div.g-recaptcha iframe').attr({ tabindex: "1" });
664664
}
665665
</script>
666666
}

src/NuGetGallery/Scripts/gallery/jquery.validate-1.16.0.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,8 @@
429429

430430
// Add aria-required to any Static/Data/Class required fields before first validation
431431
// Screen readers require this attribute to be present before the initial submission http://www.w3.org/TR/WCAG-TECHS/ARIA2.html
432-
$(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required", "true");
432+
// We exclude labels since it's not accessible
433+
$(this.currentForm).find("[required], [data-rule-required], .required").not("label").attr("aria-required", "true");
433434
},
434435

435436
// http://jqueryvalidation.org/Validator.form/

0 commit comments

Comments
 (0)