Skip to content

feat(typography): implement reflow-safe step text scaling (closes #41) - #100

Merged
prabothcharith merged 1 commit into
developmentfrom
feature/a11y-201-bigger-text-scaling
Oct 23, 2026
Merged

prabothcharith merged 1 commit into
developmentfrom
feature/a11y-201-bigger-text-scaling

Conversation

@prabothcharith

Copy link
Copy Markdown
Owner

Summary of changes

  • Implements reflow-safe stepwise text scaling (1.0, 1.125, 1.25, 1.5, 2.0) via scoped CSS properties without CSS transforms (closes [A11Y-201] Bigger text and reflow-safe scaling #41).
  • Introduces TextScaleController component dedicated to WCAG SC 1.4.4 / 1.4.10 reflow-safe text enlargement.
  • Enhances FontSizeController with stepScale and custom steps props while maintaining backward compatibility with continuous 10% steps.
  • Exports TEXT_SCALE_STEPS, TextScaleStep, TEXT_SCALE_PROTECTED_SELECTOR, and isProtectedFromTextScale.
  • Protects form controls (\input, \ extarea, \select, \�utton), labels, code blocks (\pre, \code, \kbd, \samp), vector icons (\svg, [data-icon]), and widget internals from destructive font-size and line-height mutations.
  • Measures all baselines before writing inline styles, preventing nested compounding across deep DOM trees.
  • Wires \ ontScale\ and \ extScale\ into \ eatureSchema\ builtins and \�ffects.ts, providing full runtime support for accessibility profiles (e.g. Cognitive and Low Vision).
  • Adds unit test coverage in \ ests/textScaling.test.tsx\ (130/130 unit tests passing) and browser integration test in \ ests/browser/widget.spec.ts\ (10/10 Chromium browser tests passing).
  • Bumps version to \2.4.0\ and updates documentation (\README.md, \docs/API.md, \docs/FEATURES.md, \docs/BUILD_AND_RELEASE_PLAN.md, \CHANGELOG.md).

Copilot AI balanced review requested due to automatic review settings October 23, 2026 04:29
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-23T04:29:32.860340Z
We couldn’t complete this review. Comment @codex review to try again.
712dd43 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@prabothcharith
prabothcharith merged commit e965d58 into development Oct 23, 2026
4 checks passed
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