Skip to content

[WIP] Add options for reducedMotion and colorScheme parameters#145

Open
Copilot wants to merge 3 commits intomainfrom
copilot/add-reduced-motion-and-color-scheme-options
Open

[WIP] Add options for reducedMotion and colorScheme parameters#145
Copilot wants to merge 3 commits intomainfrom
copilot/add-reduced-motion-and-color-scheme-options

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

  • Inspect repository structure, related issues, and current find action input flow
  • Run existing lint/tests and identify baseline status (noting unrelated existing failures)
  • Add minimal new inputs to the appropriate action.yml files for reduced_motion and color_scheme
  • Thread new inputs through the find action code and validate allowed values before passing to Playwright context options
  • Update directly related documentation for the new inputs
  • Run relevant lint/build/tests after changes
  • Run code review and security scan tools, address any actionable findings
  • Summarize changes, validation results, and security status

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI and others added 2 commits February 26, 2026 01:27
Co-authored-by: JoyceZhu <6251669+JoyceZhu@users.noreply.github.com>
Co-authored-by: JoyceZhu <6251669+JoyceZhu@users.noreply.github.com>
@JoyceZhu JoyceZhu marked this pull request as ready for review February 26, 2026 05:58
@JoyceZhu JoyceZhu requested a review from a team as a code owner February 26, 2026 05:58
Copy link
Contributor

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

This pull request adds support for Playwright's reducedMotion and colorScheme emulation parameters to the accessibility scanner. These parameters allow users to test their websites under different user preference conditions for motion and color schemes.

Changes:

  • Added two new optional inputs (reduced_motion and color_scheme) to the main action and find sub-action
  • Implemented input validation in the find action to ensure only valid Playwright values are accepted
  • Threaded the parameters through to Playwright's browser context configuration
  • Updated documentation in README.md and the find action's README.md

Reviewed changes

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

Show a summary per file
File Description
action.yml Added reduced_motion and color_scheme input definitions and passed them to the find sub-action
README.md Documented the new optional inputs with examples and allowed values
.github/actions/find/action.yml Added input definitions for the find sub-action
.github/actions/find/src/index.ts Implemented input validation and parameter extraction
.github/actions/find/src/findForUrl.ts Added parameters to function signature and applied them to Playwright context options
.github/actions/find/README.md Documented the new inputs with links to Playwright API documentation

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

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.

3 participants