mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-09 19:04:33 -04:00
Consolidating code ql findings (#2920)
* Consolidating code ql findings * Added ref files for backstop to set baseline for removing custom js file * Potential fix for code scanning alert no. 32: URL redirection from remote source Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Removed unused large file * Fixed import order --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
@@ -118,7 +118,8 @@
|
||||
CollapsibleCheckboxes.prototype.addHeadingHideLegend = function() {
|
||||
const headingLevel = this.$component.data('heading-level') || '2';
|
||||
|
||||
this.$heading = $(`<h${headingLevel} class="heading-small">${this.legendText}</h${headingLevel}>`);
|
||||
this.$heading = $(`<h${headingLevel} class="heading-small"></h${headingLevel}>`);
|
||||
this.$heading.text(this.legendText);
|
||||
this.$fieldset.before(this.$heading);
|
||||
|
||||
this.$fieldset.find('legend').addClass('usa-sr-only');
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
if (valuesInLabel.length === 2) {
|
||||
leftValue = valuesInLabel[0];
|
||||
rightValue = valuesInLabel[1];
|
||||
$(this).find('.radio-slider-left-value').html(leftValue);
|
||||
$(this).find('.radio-slider-right-value').html(rightValue);
|
||||
$(this).find('.radio-slider-left-value').text(leftValue);
|
||||
$(this).find('.radio-slider-right-value').text(rightValue);
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user