Compare commits

...

1 Commits

Author SHA1 Message Date
Beverly Nguyen
7fc30ed3d8 only plain text is allowed 2025-09-18 11:29:29 -07:00

View File

@@ -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');