Skip to content

Commit

Permalink
Merge pull request #5856 from uswds/al-update-error-msg
Browse files Browse the repository at this point in the history
USWDS - In-page navigation: Update reference to data-heading-elements sttribute
  • Loading branch information
thisisdano committed May 22, 2024
2 parents 8fd9278 + 2094fc9 commit a3ec5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/usa-in-page-navigation/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const createSectionHeadingsArray = (
selectedHeadingTypesArray.forEach((headingType) => {
if (!IN_PAGE_NAV_VALID_HEADINGS.includes(headingType)) {
throw new Error(
`In-page navigation: data-header-selector attribute defined with an invalid heading type: "${headingType}".
`In-page navigation: data-heading-elements attribute defined with an invalid heading type: "${headingType}".
Define the attribute with one or more of the following: "${IN_PAGE_NAV_VALID_HEADINGS}".
Do not use commas or other punctuation in the attribute definition.`
);
Expand Down

0 comments on commit a3ec5c2

Please sign in to comment.