only plain text is allowed

This commit is contained in:
Beverly Nguyen
2025-09-18 11:29:29 -07:00
parent 34d6c827c2
commit 7fc30ed3d8

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