Skip to content

Conversation

@GBKS
Copy link
Contributor

@GBKS GBKS commented Jun 24, 2025

Replacing the div used for table of content elements with nav tags (info), as well as adding aria-labels. These two changes help screen readers and search engines correctly identify the elements as navigation and table of contents for the page.

Something that is not 100% ideal is that the automated table of contents creates unordered lists (ul). Ordered lists (ol) would be more appropriate, since the order of the table of contents always matches the order of the page content. But that is a built-in jekyll/markdown thing and can't be changed AFAICT.

There are no visible changes, it's all under-the-hood.

GBKS added 2 commits June 24, 2025 09:13
<nav> is a more appropriate tag for a table of content elements. And the additional aria-label helps screen reader users and search engines figure out what it's about.
@GBKS GBKS added Enhancement New feature or request Dev Development-focused tasks. labels Jun 24, 2025
@netlify
Copy link

netlify bot commented Jun 24, 2025

Deploy Preview for bitcoin-design-site ready!

Name Link
🔨 Latest commit e0c3ea9
🔍 Latest deploy log https://app.netlify.com/projects/bitcoin-design-site/deploys/685a67be5a69940008e91081
😎 Deploy Preview https://deploy-preview-1180--bitcoin-design-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@GBKS GBKS requested a review from Copilot June 24, 2025 08:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the semantic markup and accessibility of table of contents elements across the documentation by replacing

elements with elements and adding appropriate aria-labels.

  • Replaced generic container elements with semantic tags in multiple guide pages.
  • Added aria-labels for improved screen reader support.

Reviewed Changes

Copilot reviewed 36 out of 36 changed files in this pull request and generated no comments.

Show a summary per file
File Description
guide/savings-wallet/time-based-recovery.md Updated table of contents container to with aria-label.
guide/resources/design-research.md Updated table of contents container to with aria-label.
guide/multiple-wallets.md Updated table of contents container to with aria-label.
guide/inheritance-wallet/wallet-creation.md Updated table of contents container to with aria-label.
guide/inheritance-wallet/succession.md Updated table of contents container to with aria-label.
guide/inheritance-wallet/overview.md Updated table of contents container to with aria-label.
guide/inheritance-wallet/onboarding-cosigners.md Updated table of contents container to with aria-label.
guide/inheritance-wallet/making-changes.md Updated table of contents container to with aria-label.
guide/inheritance-wallet/backup.md Updated table of contents container to with aria-label.
guide/how-it-works/wallet-privacy.md Updated table of contents container to with aria-label.
guide/how-it-works/stabilizing-bitcoin-value.md Updated table of contents container to with aria-label.
guide/how-it-works/silent-payments.md Updated table of contents container to with aria-label.
guide/how-it-works/sign-in-with-bitcoin.md Updated table of contents container to with aria-label.
guide/how-it-works/liquidity.md Updated table of contents container to with aria-label.
guide/how-it-works/human-readable-addresses.md Updated table of contents container to with aria-label.
guide/how-it-works/ecash/design-best-practices.md Updated table of contents container to with aria-label.
guide/glossary/index.md Updated table of contents container to with aria-label.
guide/glossary/address.md Updated table of contents container to with aria-label.
guide/getting-started/principles.md Updated table of contents container to with aria-label.
guide/designing-products/user-personas.md Updated table of contents container to with aria-label.
guide/designing-products/personal-finance.md Updated table of contents container to with aria-label.
guide/designing-products/common-user-flows.md Updated table of contents container to with aria-label.
guide/daily-spending-wallet/settings.md Updated table of contents container to with aria-label.
guide/daily-spending-wallet/sending.md Updated table of contents container to with aria-label.
guide/daily-spending-wallet/security.md Updated table of contents container to with aria-label.
guide/daily-spending-wallet/requesting/requesting.md Updated table of contents container to with aria-label.
guide/daily-spending-wallet/requesting/receiving.md Updated table of contents container to with aria-label.
guide/daily-spending-wallet/privacy.md Updated table of contents container to with aria-label.
guide/daily-spending-wallet/landing-page.md Updated table of contents container to with aria-label.
guide/daily-spending-wallet/first-use.md Updated table of contents container to with aria-label.
guide/daily-spending-wallet/contacts.md Updated table of contents container to with aria-label.
guide/contribute/formatting/media.md Updated table of contents container to with aria-label.
guide/contribute/formatting/index.md Updated table of contents container to with aria-label.
guide/contribute/case-studies.md Updated table of contents container to with aria-label.
guide/case-studies/saving-satoshi.md Updated table of contents container to with aria-label.
guide/case-studies/payjoin.md Updated table of contents container to with aria-label.

Copy link
Collaborator

@swedishfrenchpress swedishfrenchpress left a comment

Choose a reason for hiding this comment

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

ACK. No breaking changes. Helpful addition.

@swedishfrenchpress swedishfrenchpress merged commit 42469af into master Jun 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dev Development-focused tasks. Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants