storefront-accessibility
Skill1 starsChanged 18 days agoMITView on GitHub
Build product, cart, and checkout pages that meet WCAG 2.2 AA: keyboard use, visible focus, labels and autocomplete, announced errors and cart updates, contrast, and target size. Use when building or reviewing storefront UI, forms, filters, carousels, or checkout for accessibility.
In this repository28 other files it gives its agents.
- b2b-pricingSkill
- catalog-import-and-migrationSkill
- checkout-ux-and-conversionSkill
- conversion-event-trackingSkill
- ecommerce-seo-structured-dataSkill
- fraud-and-risk-basicsSkill
- google-merchant-product-feedsSkill
- headless-nextjs-storefrontSkill
- inventory-and-multi-warehouseSkill
- iranian-payment-gatewaysSkill
- marketplace-search-and-rankingSkill
- mcp-store-toolingSkill
- multi-vendor-payoutsSkill
- order-and-webhook-reliabilitySkill
- payment-gateway-integrationSkill
- product-catalog-modelingSkill
- product-description-guardrailsSkill
- returns-and-refundsSkill
- rtl-and-persian-localizationSkill
- shopify-app-developmentSkill
- storefront-performanceSkill
- stripe-paymentsSkill
- subscription-billingSkill
- tax-and-shippingSkill
- vector-product-searchSkill
- woocommerce-plugin-developmentSkill
- woocommerce-rest-apiSkill
- wordpress-plugin-securitySkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Use native elements first: <button> for actions, <a href> for navigation, <select>, <input type="radio">, and <fieldset> with <legend> for …
- Distinctive: line 21
Check color contrast: 4.5:1 for normal text, 3:1 for large text and for focus indicators, borders of inputs, and icons that carry meaning.
- Distinctive: line 23
Test with a keyboard only, a screen reader, 200 percent zoom, and an automated checker on the product, cart, and checkout templates.
- Distinctive: line 35
Do not ask for the same information twice in one flow.
- Distinctive: line 36
Do not require solving a puzzle or remembering a code to sign in or pay, unless an alternative exists (3.3.8 Accessible Authentication).
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Storefront accessibility
A shopper who cannot reach the buy button with a keyboard, or does not hear that the cart changed, cannot buy. Aim for WCAG 2.2 level AA on every step from search to order confirmation. The success criteria that matter most in a store are listed in the WCAG checklist.
Procedure
- Use native elements first:
<button>for actions,<a href>for navigation,<select>,<input type="radio">, and<fieldset>with<legend>for option groups. Add ARIA only where no native element fits. - Make every action work with a keyboard in a logical order, with a visible focus indicator that is not hidden behind sticky headers or cookie banners.
- Give every form field a visible
<label>and the rightautocompletetoken (given-name,postal-code,email,tel,cc-number). - Announce changes that happen without a page load: "Added to cart", a new cart total, filter result counts. Use a polite live region (
role="status"oraria-live="polite"). - On a form error, name the field and the fix in text, link the error summary to the fields, set
aria-invalid="true", and move focus to the summary or the first invalid field. - Check color contrast: 4.5:1 for normal text, 3:1 for large text and for focus indicators, borders of inputs, and icons that carry meaning.
- Make touch and click targets at least 24 by 24 CSS pixels, or space them so the 24 pixel circle around each does not overlap another.
- Test with a keyboard only, a screen reader, 200 percent zoom, and an automated checker on the product, cart, and checkout templates.
Product pages
- Variation pickers are radio groups or selects with a group label ("Size"). A color swatch has a text name, not only a color. Unavailable options say so in text.
- Price changes after picking a variation are announced.
- Images have
alttext that says what differs between them ("Back view, blue"). Decorative images havealt="". - Carousels have pause controls, do not auto-advance faster than a shopper can read, and can be used with a keyboard.
Cart and checkout
- Quantity steppers are buttons with names ("Increase quantity of Blue mug"), and the input accepts typed values.
- Do not ask for the same information twice in one flow. Offer "same as shipping" for billing (WCAG 3.3.7 Redundant Entry).
- Do not require solving a puzzle or remembering a code to sign in or pay, unless an alternative exists (3.3.8 Accessible Authentication). Allow password managers and pasting one-time codes.
- Session timeouts warn the shopper and let them extend, so a slow shopper does not lose the cart.
- The order confirmation page has a clear heading and the order number as text.
Gotchas
<div onclick>buttons are not focusable and are not announced as buttons.- A placeholder is not a label. It disappears when typing starts and often fails contrast.
outline: nonewithout a replacement focus style hides where the keyboard is.- Opening a mini-cart drawer without moving focus into it, or without returning focus when it closes, strands keyboard users.
- Infinite scroll without a "load more" button hides the footer and is hard to navigate by keyboard.
- Disabled "Place order" buttons with no explanation leave shoppers stuck. Keep it enabled and explain errors on submit.
Verification
- The whole purchase, from search to confirmation, completes with a keyboard only.
- A screen reader announces the add-to-cart result and the new cart count.
- Submitting checkout with an empty postal code moves focus to an error that names the field.
- Text and focus indicators meet the contrast ratios above.
- The page is usable at 200 percent zoom and 320 CSS pixels wide without horizontal scrolling.
Evaluation
Worked examples and the checks they must satisfy are in evals/tasks.json.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

