Add copy controls to substantive text fields - #33
Merged
Merged
Conversation
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.
What changed
Adds one accessible Copy control to every established substantive text field: page heads, panels, quotations, cards, provenance, full textbook/source text, disclosures, the Awakening surface, the emergency fallback, and Four Cuts. Linked cards use a sibling control so no interactive element is nested in an anchor.
The copied text excludes controls and script/style content. Copy confirmation is announced to assistive technology; controls are hidden in print.
Four Cuts now participates in the accessibility sweep; its low-contrast label tokens were corrected while adding its copy controls.
Why
Every informational box or complete text needs one direct copy path, without turning paragraphs or navigation into duplicate controls.
Validation
npx playwright test -g 'copy control'— passednpx playwright test tests/accessibility.spec.mjs— 18/18 passednpm run check— workflow-action audit, generated-LLM integrity, and EDCM-reference drift checks passed; the local full run proceeded into live source refresh but did not yield a clean final result in this runtime. CI remains the authoritative complete gate.hmmm
The local release run refreshed generated canon/repository snapshots, which are intentionally excluded from this PR. No canonical text or provenance snapshot was changed by this feature.