Skip to content

Commit

Permalink
Revert "VACMS-14747 Fix duplicate ID issue on va-accordion-item (#1660)…
Browse files Browse the repository at this point in the history
…" (#1669)

This reverts commit 4dc5b26.
  • Loading branch information
randimays authored Aug 17, 2023
1 parent ad73b2d commit 7e7fc64
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,11 @@ module.exports = {
const heading = dom(el);
const parent = heading.parents();
const isInAccordionButton = parent.hasClass('usa-accordion-button');
const isInAccordionItem = dom('va-accordion-item [slot="headline"]');

const isInAlert = parent.hasClass('usa-alert-body');

// skip heading if it already has an id
// skip heading if it's in an accordion button or an alert
if (
!heading.attr('id') &&
!isInAccordionButton &&
!isInAlert &&
!isInAccordionItem
) {
if (!heading.attr('id') && !isInAccordionButton && !isInAlert) {
const headingID = createUniqueId(heading, headingOptions);
heading.attr('id', headingID);
idAdded = true;
Expand Down

0 comments on commit 7e7fc64

Please sign in to comment.