Repository navigation
Conversation
Section headings combined date and title, producing very long in-page nav links. Replicate the design maintainers prototyped on the dw-mc-titles branch and endorsed in the issue: date-only h2 headings with the call title as bold text below. Faithful to the prototype, which renders the title in place of the former subtitle line. Fixes uswds#3077
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Shortened the in-page navigation links on the Monthly Calls page by replicating the design the USWDS team prototyped on the
dw-mc-titlesbranch: date-only headings with the call title as bold text below.Related issue
Closes #3077
Problem statement
Each Monthly Calls section heading combined the date and the full call title (for example, "December 2024 : USWDS and Federal Website Standards"). The in-page navigation builds its links from those headings, so the nav was a column of very long links that were hard to scan.
Solution
Replicated @thisisdano's prototype from the
dw-mc-titlesbranch — the template is now byte-identical to it — per @amyleadem's comment that "We should use this design as a starting point." Headings become just the date ("December 2024"), and the call title renders as bold text directly below the heading.Two things inherent to the prototype's design, flagged for reviewers rather than hidden:
#december-2024--uswds-and-federal-website-standards→#december-2024), so any external deep links to old anchors won't land on the heading anymore.Testing and review
bundle exec rspecpasses (10 examples, 0 failures).