-
Notifications
You must be signed in to change notification settings - Fork 195
USWDS-Site: Add changelog for in-page navigation [#6205] #3000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Todo: Update guidance to include this new data attribute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this, @mlloydbixal! I added a comment below with some suggestions for copy updates.
Can you also add documentation for this new setting on the settings page and in the settings table on the in-page navigation page? Whoops, I mean can you add this prop to the "In-page navigation initialization properties" table?
Let me know if you have any questions.
summary: Hide in-page navigation when there are fewer than 2 headings. | ||
summaryAdditional: The `data-minimum-heading-count` setting determines when the in-page navigation should be displayed or hidden if the minimum number of headings is not reached. Previously, in-page navigation was shown even when there were no headings, resulting in an empty component. This setting can be customized. | ||
affectsGuidance: true | ||
affectsJavascript: true | ||
affectsMarkup: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Update the focus of the summary to highlight that this is a customizable setting. I also made some suggestions to change the "affects" tags here. Here is a possible rewrite:
summary: Hide in-page navigation when there are fewer than 2 headings. | |
summaryAdditional: The `data-minimum-heading-count` setting determines when the in-page navigation should be displayed or hidden if the minimum number of headings is not reached. Previously, in-page navigation was shown even when there were no headings, resulting in an empty component. This setting can be customized. | |
affectsGuidance: true | |
affectsJavascript: true | |
affectsMarkup: true | |
summary: Added the `data-minimum-heading-count` setting, which hides the component when the content region does not contain the minimum number of headings. | |
summaryAdditional: By default, this setting hides the in-page navigation component when there are fewer than two headings in the content region. Teams should customize the value of this setting based on their content needs. | |
affectsJavascript: true | |
affectsSettings: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
Add a changelog for PR uswds/uswds#6205
Important
We need to update the changelog dates before merge.
Preview link
In-page navigation changelog