Skip to content

Update reflow-scan text to improve clarity and reference WCAG 2.2#231

Merged
taarikashenafi merged 3 commits into
mainfrom
fix/reflow-scan-text-updates
Jun 18, 2026
Merged

Update reflow-scan text to improve clarity and reference WCAG 2.2#231
taarikashenafi merged 3 commits into
mainfrom
fix/reflow-scan-text-updates

Conversation

@taarikashenafi

Copy link
Copy Markdown
Contributor

Closes #230

Updates the reflow-scan plugin text to improve clarity:

  • Removes mention of 256 height from comment
  • Updates problemShort to better describe the issue
  • Updates problemUrl to reference WCAG 2.2 instead of 2.1
  • Updates solutionShort to use more descriptive guidance
  • Updates solutionLong with clearer violation explanation
  • Updates test strings to match new copy

Copilot AI review requested due to automatic review settings June 17, 2026 21:09
@taarikashenafi taarikashenafi requested a review from a team as a code owner June 17, 2026 21:09
@taarikashenafi taarikashenafi self-assigned this Jun 17, 2026
GitHub Advanced Security started work on behalf of taarikashenafi June 17, 2026 21:09 View session
@taarikashenafi taarikashenafi requested a review from JoyceZhu June 17, 2026 21:10
GitHub Advanced Security finished work on behalf of taarikashenafi June 17, 2026 21:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the reflow-scan plugin’s user-facing copy (and related test expectations) to better describe the reflow finding and to reference WCAG 2.2.

Changes:

  • Revised problemShort, solutionShort, and solutionLong text for reflow findings to be clearer and more action-oriented.
  • Updated the WCAG “Understanding Reflow” link from WCAG 2.1 to WCAG 2.2.
  • Updated test expectations to match the new strings.
Show a summary per file
File Description
.github/scanner-plugins/reflow-scan/index.ts Updates reflow-scan finding copy and WCAG reference URL.
tests/site-with-errors.test.ts Updates expected strings/titles to match the revised reflow-scan copy.

Copilot's findings

Tip

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

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

Comment thread .github/scanner-plugins/reflow-scan/index.ts
Comment thread .github/scanner-plugins/reflow-scan/index.ts Outdated
@taarikashenafi taarikashenafi removed their assignment Jun 17, 2026
// Check for horizontal scrolling at 320 viewport
try {
await page.setViewportSize({ width: 320, height: 256 })
await page.setViewportSize({width: 320, height: 256})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

did Prettier automatically do this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, Prettier auto-formatted on save

@JoyceZhu

Copy link
Copy Markdown
Contributor

Let's also bump the patch version up here since we've changed the plugin copy a decent amount. (Whenever we add support for marking filings as Best Practices/Needs Human Review, we can upgrade the minor version)

Comment thread .github/scanner-plugins/reflow-scan/index.ts Outdated
@JoyceZhu

Copy link
Copy Markdown
Contributor

suggested a couple wording/typo adjustments from the original request.

Co-authored-by: Joyce Zhu <joycezhu@github.com>
GitHub Advanced Security started work on behalf of taarikashenafi June 18, 2026 21:37 View session
GitHub Advanced Security finished work on behalf of taarikashenafi June 18, 2026 21:38
GitHub Advanced Security started work on behalf of taarikashenafi June 18, 2026 21:54 View session
GitHub Advanced Security finished work on behalf of taarikashenafi June 18, 2026 21:56
@taarikashenafi taarikashenafi merged commit dba0765 into main Jun 18, 2026
7 checks passed
@taarikashenafi taarikashenafi deleted the fix/reflow-scan-text-updates branch June 18, 2026 22:21
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.

Consider the following edits for the reflow-scan

3 participants