Skip to content

fix: update table-of-contents from 0.1.1 to 0.2.5#97

Merged
WybeBosch merged 1 commit into
mainfrom
fix/toc-subheading-button-accessible-name
Jun 15, 2026
Merged

fix: update table-of-contents from 0.1.1 to 0.2.5#97
WybeBosch merged 1 commit into
mainfrom
fix/toc-subheading-button-accessible-name

Conversation

@WybeBosch

@WybeBosch WybeBosch commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Update van @yardinternet/table-of-contents van 0.1.1 naar 0.2.5.

Uit de toegankelijkheidsaudit van Moerdijk kwam dat de inklap-knop bij de subkoppen in de inhoudsopgave alleen "Ingeklapt"/"Uitgeklapt" voorleest. Je hoort dus wel de status, maar niet bij welke kop (bv. "Planning") het hoort. In 0.2.5 is dit opgelost: de knop heet nu "Toon/Verberg subhoofdstukken ".

Lokaal getest of het na upgrade werkt, en lijkt goed te gaan.

Geen aanpassingen nodig aan deze plugin zelf. Geen input van gebruiker nodig behalve updaten van plugin.
Na merge: release taggen + composer update op Moerdijk en Brave (zelfde oude versie zit in alle 1.5.x).

Note *

0.2.5 is wel ESM-only en gebruikt nu de externe JSX-runtime (window.ReactJSXRuntime), maar wp-scripts zet react-jsx-runtime al automatisch in de asset-deps.

Copilot AI review requested due to automatic review settings June 15, 2026 11:37
@WybeBosch WybeBosch requested a review from a team as a code owner June 15, 2026 11:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the bundled Table of Contents block dependency to pick up an upstream accessibility fix (WCAG 1.3.1) so the subheading collapse/expand toggle is announced with the associated heading text, rather than only a state label.

Changes:

  • Bump @yardinternet/table-of-contents from ^0.1.1 to ^0.2.5.
  • Update package-lock.json to reflect the new dependency graph (including removal of react-css-collapse).
  • Rebuild the block frontend artifacts (build/Blocks/table-of-contents/view.js + view.asset.php) to ship the upstream fix.

Reviewed changes

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

File Description
package.json Updates the @yardinternet/table-of-contents dependency version to ^0.2.5.
package-lock.json Locks the new TOC package version and removes now-unused transitive deps (e.g. react-css-collapse).
build/Blocks/table-of-contents/view.js Rebuilt frontend bundle containing the improved accessible naming for the subheading toggle.
build/Blocks/table-of-contents/view.asset.php Updates the generated asset metadata (deps/version) for the rebuilt frontend script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@WybeBosch WybeBosch merged commit 53b6511 into main Jun 15, 2026
1 check passed
@WybeBosch WybeBosch deleted the fix/toc-subheading-button-accessible-name branch June 15, 2026 11:51
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