Spider Solitaire accessibility features
By Spider Solitaire Online Editorial Team · Published
Every action works from the keyboard, cards and columns have text labels, moves are announced through a live region, and suits differ by shape as well as colour. We have not tested with real screen readers.
A card game can be played in many ways: with a mouse, a finger, a keyboard, a screen reader or a magnifier. This guide describes what we built for each, how we checked it, and what we have not been able to check. We would rather give you an accurate list of what exists and what is missing than claim the game is "fully accessible", which is a statement no automated test can establish. If something here does not work for you, please tell us.
Playing with the keyboard alone
Every action in the game can be done from the keyboard. Arrow keys move a cursor around the board, Enter or Space selects a card and places it, and single letters run the commands: D deals, U undoes, Shift+U redoes, H gives a hint, N starts a new deal, R restarts, P pauses, M toggles sound, A auto-completes and the question mark shows keyboard help. The number keys jump to a column, so key 1 goes to the first column and key 0 to the tenth. Home and End jump to the first and last column. Escape clears a selection. The full table is on the controls page.
The board uses what is called a roving tabindex: at any time exactly one card or empty-column slot is a tab stop, and the arrow keys move it. This means Tab takes you into the board once and out again, instead of forcing you through every one of up to 104 cards. Shortcuts that use letters are ignored while you are typing in a text field, and when Ctrl, Alt or Command is held, so they do not interfere with the browser's own shortcuts.
The page also begins with a "Skip to content" link, which becomes visible when focused, so keyboard users can bypass the navigation.
Screen readers
Each card is a button with a text label naming its rank and suit, such as "Queen of hearts", and a face-down card is labelled "Face-down card" and marked as disabled. Each column is a list with a label that gives its number, how many cards it holds, how many are face down and its top card, for example "Column 3, 7 cards, 4 face down, top card Six of spades". An empty column is labelled "Column 3, empty. Drop here". The stock says how many deals are left, and the completed-runs area says how many of the runs are done.
Changes in the game are announced through a polite live region, which a screen reader reads without moving focus. The announcements include:
- Moves: "Moved 3 cards from column 2 to column 5." When a hidden card is turned over the announcement adds "Revealed Seven of hearts in column 2", and when a run is completed it adds "Completed a run. 2 of 8 runs done."
- Deals: "Dealt a new row. 3 deals left."
- Undo: "Undid: moved 3 cards from column 2 to column 5."
- Refusals: reasons such as "Fill every empty column before dealing a new row", "No legal move for that card", or "That card can't be moved: it isn't part of a same-suit run on top of the column."
- Hints and stuck positions: "No helpful move found. Try undo, or start a new deal", and a notice when no moves remain.
Dialogs, such as settings, statistics and keyboard help, use the browser's native dialog element, which handles modal focus. We added explicit Tab wrapping after finding in testing that Tab could otherwise leave a dialog and reach the browser's own controls.
What play sounds like
To give a concrete idea of the announcements, here are the first three moves of the one-suit deal SS-1-7 as the game words them. Each is spoken as soon as the move is made:
- "Moved 1 card from column 3 to column 6. Revealed 4 of spades in column 3."
- "Moved 1 card from column 3 to column 10. Revealed 6 of spades in column 3."
- "Moved 1 card from column 5 to column 1. Revealed 6 of spades in column 5."
The messages are short and always name the columns, so you can keep a mental picture of the board. You can also move the cursor to any column to hear its label, and the labels give the top card and the number of hidden cards, which is the information a sighted player reads at a glance.
Colour and contrast
Suits are never distinguished by colour alone. Each of the four suits has its own silhouette, so spades, hearts, diamonds and clubs differ in shape as well as colour. For people who find red and black hard to tell apart, the Four-colour suits setting gives each suit its own colour as well.
We check contrast by script, against the thresholds in the Web Content Accessibility Guidelines (4.5 to 1 for text, 3 to 1 for graphics and focus indicators). The script tests 20 pairs, and all pass. Some examples of the measured ratios:
| Pair | Ratio | Needed |
|---|---|---|
| Black card rank and pips on card paper | 18.13 to 1 | 4.5 |
| Red suits on card paper | 7.34 to 1 | 4.5 |
| Four-colour blue (diamonds) on card paper | 7.50 to 1 | 4.5 |
| Four-colour green (clubs) on card paper | 6.66 to 1 | 4.5 |
| Primary button, light theme | 5.83 to 1 | 4.5 |
| Primary button, dark theme | 7.33 to 1 | 4.5 |
| Focus ring (yellow) on green felt | 4.60 to 1 | 3 |
| Empty-column outline on green felt | 3.82 to 1 | 3 |
You can choose a light or dark theme, or match your device, and three table colours. The script also checks the stock label and the outlines of empty slots on all three table colours, and the buttons in both themes. The yellow focus ring is checked against the green table only.
Motion and sound
- Reduced motion. If your device is set to reduce motion, the game starts with reduced animation, and the hint's pulsing highlight is switched off. The Animation setting also lets you choose full, reduced or off.
- Sound. Sound effects are off by default and play only if you turn them on. They are generated in the browser. Nothing in the game depends on hearing a sound.
- No time pressure by default. Only the speedrun mode runs a visible clock. In other modes you can think as long as you like, and the Pause button covers the board.
Size and touch
The buttons around the board are at least 44 by 44 pixels. The cards themselves are smaller on a phone: about 25 to 32 pixels wide on screens 320 to 390 pixels wide, as we describe in the mobile guide. That is below the 44-pixel guideline and is a known shortfall. Tapping instead of dragging avoids needing to hold a small target, the Large cards setting enlarges the numbers on the cards, and the page respects browser zoom. The Tap on a card setting can be set to select first and then choose a column, which avoids accidental moves.
Every action that can be done by dragging can also be done by tapping and by keyboard. Nothing in the game requires a drag.
Reading the rest of the site
Guides, rules and legal pages are plain HTML with no JavaScript. They use a single level-one heading and headings in order, descriptive link text, a language declaration, and a labelled main landmark. Our site checker tests for the heading order and a single heading of the first level on every page, and the contrast script covers the page colours. Tables have header cells. We do not use images of text.
Settings for different needs
These are suggestions assembled from the features above. They are reasoning about how the settings combine and have not been tried with a panel of users.
- Keyboard only. Learn the number keys and the letters on the controls page, set Tap on a card to "Select, then choose a column" so that Enter selects and a second Enter places, and use the question mark whenever you need the key list.
- Low vision. Turn on Large cards for bigger numbers, choose the light or dark theme that suits you, and use browser zoom. At high zoom the board may scroll, and moving the keyboard cursor moves browser focus, which browsers normally scroll into view.
- Colour vision difference. Turn on Four-colour suits. Suit shapes remain different in every setting.
- Motion sensitivity. Set Animation to reduced or off. The setting persists in your browser.
- One hand or limited reach. Use the tap method rather than dragging, and consider Left-handed layout.
What we checked, and how
- Automated browser tests confirm that every control has an accessible name, that identifiers are unique, that columns are labelled lists and that the live region exists. They also pick up and drop cards using only the keyboard.
- The contrast script described above runs against the colours defined in the stylesheet.
- The site checker tests the structure of all pages.
What we have not checked
This list matters more than the one above it.
- Real screen readers. We have not tested with NVDA, JAWS, VoiceOver or TalkBack. The labels and announcements are standard, but how they sound and whether they are too chatty or too sparse is something only real use can show.
- Voice control and switch access. Not tested.
- Magnifiers and high-contrast modes. We have not checked the game in operating-system forced-colour modes.
- Users with disabilities. We have not had the game reviewed by disabled players, and automated checks cannot replace that.
- Small cards on phones. As above, below the touch-target guideline.
If you use assistive technology and find that something is missing, confusing or too noisy, we want to hear from you. Please email us with your device, browser and assistive technology, and what you were trying to do. We will treat accessibility reports as bugs.
Related reading
The controls are listed in full on the controls page, small-screen play is covered in the mobile guide, and the structure of the interface code is described in building Spider Solitaire in TypeScript.