You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a built-in scan that will detect if a page horizontally scrolls on
a mobile screen size (320x256).
Example reflow issue:
<img width="1247" height="1163" alt="Screen shot of a GitHub issue with
the title 'page requires horizontal scrolling', and the issue body
stating the issue is found at 320x256px"
src="https://github.com/user-attachments/assets/ed9e4111-2aeb-4ab0-8df3-a5984a846628"
/>
Updates made:
* Passes in `url` from the plugin manager so it can be accessed in the
plugins (which I can see being needed for most plugins at this point)
* Removes test plugin in favor of pointing to a real plugin, updates
docs accordingly
* Updates the pluginManager to account for an edge case with duplicate
named plugins running multiple times
* Makes `ruleId` and `html` optional in the issue body - handles
conditionals if these are not passed in and adds tests
* Adds new error to the sites/site-with-errors 404 page to check in the
site-with-errors test.
[Testing - staff only]:
* [Workflow test w/no scans input passed
in](https://github.com/github/accessibility-scorecard/actions/runs/23449717365)
* [Workflow test w/`include_screenshots`
on](https://github.com/github/accessibility-scorecard/actions/runs/23448598781)
* [Workflow test w/`include_screenshots`
off](https://github.com/github/accessibility-scorecard/actions/runs/23449359031)
- [ ] The specific axe violation reported in this issue is no longer reproducible.
23
-
- [ ] The fix MUST meet WCAG 2.1 guidelines OR the accessibility standards specified by the repository or organization.
24
-
- [ ] A test SHOULD be added to ensure this specific axe violation does not regress.
25
-
- [ ] This PR MUST NOT introduce any new accessibility issues or regressions.
26
-
`
22
+
- [ ] The specific violation reported in this issue is no longer reproducible.
23
+
- [ ] The fix MUST meet WCAG 2.1 guidelines OR the accessibility standards specified by the repository or organization.
24
+
- [ ] A test SHOULD be added to ensure this specific violation does not regress.
25
+
- [ ] This PR MUST NOT introduce any new accessibility issues or regressions.`
27
26
28
27
constbody=`## What
29
-
An accessibility scan flagged the element \`${finding.html}\`on ${finding.url} because ${finding.problemShort}. Learn more about why this was flagged by visiting ${finding.problemUrl}.
28
+
An accessibility scan ${finding.html ? `flagged the element \`${finding.html}\`` : `found an issue on ${finding.url}`} because ${finding.problemShort}. Learn more about why this was flagged by visiting ${finding.problemUrl}.
solutionShort: 'ensure content is responsive and does not require horizontal scrolling at small viewport sizes',
18
+
solutionLong: `The page has a scroll width of ${scrollWidth}px but a client width of only ${clientWidth}px at a 320x256 viewport, requiring horizontal scrolling. This violates WCAG 2.1 Level AA Success Criterion 1.4.10 (Reflow).`,
0 commit comments