Skip to content

Task: Add accessibility tagging support for Wellcome Funding Platform#1

Open
stuartwilkes wants to merge 38 commits intowellcome-mainfrom
task/completed-accessibility-changes
Open

Task: Add accessibility tagging support for Wellcome Funding Platform#1
stuartwilkes wants to merge 38 commits intowellcome-mainfrom
task/completed-accessibility-changes

Conversation

@stuartwilkes
Copy link

What does this change?

Adds support for accessibility tagging

How to test

How can we measure success?

Have we considered potential risks?

@stuartwilkes stuartwilkes changed the title Task/completed accessibility changes Task: Add accessibility tagging support for Wellcome Funding Platform Mar 19, 2026
@stuartwilkes stuartwilkes requested a review from Copilot March 19, 2026 20:22
Copy link

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

Adds PDF accessibility tagging support (logical structure tree + tagged content) for the Wellcome Funding Platform fork of pdfmake, enabling richer semantics for screen readers and assistive tooling.

Changes:

  • Introduces tagged PDF structure generation in src/printer.js (Document/Sect/TOC, paragraphs/headings, lists, tables, figures, and link struct handling).
  • Annotates list items and (conditionally) table cells in src/layoutBuilder.js to carry metadata needed for tagging during rendering.
  • Adjusts build/runtime behavior (keeps console statements in minified output; supports iterating multi-page unbreakable block fragments; forked package metadata).

Reviewed changes

Copilot reviewed 5 out of 10 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
webpack.config.js Changes Terser compression to preserve console output in minified bundles.
src/printer.js Implements the bulk of tagged-PDF rendering: structure tree creation, list/table/TOC/figure/link tagging, and artifact marking.
src/pageElementWriter.js Changes unbreakable-block commit behavior to iterate across multiple internal pages.
src/layoutBuilder.js Adds list/table annotation metadata and attaches _node to all lines for tagging.
src/elementWriter.js Makes unbreakable context height calculation resilient to different page shape fields.
src/3rd-party/svg-to-pdfkit/source.js Large vendor file rewrite (appears to be a full-file replacement).
package.json Renames/scopes the package and bumps major version; updates repository/links.

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

Copy link

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

Copilot reviewed 6 out of 11 changed files in this pull request and generated 3 comments.


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

Copy link

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

Copilot reviewed 6 out of 11 changed files in this pull request and generated 5 comments.


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

Copy link
Author

Choose a reason for hiding this comment

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

Not related to accessibility - this is migrated in from the patch we apply in production.

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