Skip to content

Update regs TOC to use list links#8932

Open
anselmbradford wants to merge 3 commits intomainfrom
ans_regs_list
Open

Update regs TOC to use list links#8932
anselmbradford wants to merge 3 commits intomainfrom
ans_regs_list

Conversation

@anselmbradford
Copy link
Copy Markdown
Member

@anselmbradford anselmbradford commented Oct 16, 2025

regulations listings table of contents uses custom pattern at https://www.consumerfinance.gov/rules-policy/regulations/

It should use a list link pattern instead https://cfpb.github.io/design-system/components/links#list-link

Changes

  • Update regs TOC to use list links.

How to test this PR

  1. Pull branch and yarn build && ./runserver.sh and visit http://localhost:8000/rules-policy/regulations/ and resize to mobile. Set the date of a reg into the future on admin/regulations3k/effectiveversion/?part=2 to show the nested list.

Screenshots

Before After
Screenshot 2025-10-16 at 2 41 32 PM Screenshot 2025-11-04 at 12 27 31 PM
Screenshot 2025-10-16 at 2 41 41 PM Screenshot 2025-11-04 at 12 27 42 PM

Notes and todos

Copy link
Copy Markdown
Contributor

@itsmedavep itsmedavep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, I DO see the list link pattern.

I do not see what these sceens show though.

👇 Desktop
Image

👇 Mobile
Image

Did something change since this was opened? (apologies for taking this long to look at this)

Copy link
Copy Markdown

@accesslint accesslint Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found 2 issues across 1 rule.

Comment thread cfgov/regulations3k/jinja2/regulations3k/regulations-listing.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants