In the light version of a garden map, the route through the orchard has a heavy line and the other routes rest in the background. At night the orchard route is still selected, but a new layer gives one of the alternatives a pale luminous stroke. The alternative now looks like the active route. The list below the map disagrees, and its selection marker is hard to see against the night background anyway. What began as a palette change has changed the answer to a practical question: which route am I looking at?

Theme checks need to preserve meaning, not simply prevent unreadable body text. A person using the map should be able to identify the selected route, tell it from available alternatives, and use the accompanying controls no matter how the palette was chosen. Selection should also survive a switch of palette. Those are separate assertions. A well-contrasted map can communicate the wrong route, and a correctly selected route in application state can be impossible for someone to identify visually. Treat route identity, application state, and the way the theme represents them as related but independently checkable.
Say what selection means before evaluating its appearance
A typical route explorer has several distinct states. The selected route might be the itinerary whose details are open. A hovered route might simply be the one underneath a pointer. The focused route control is where keyboard input would go next. A route might be temporarily unavailable, while another is available but not selected. The map can also show a current location marker, which is not a route choice. Write a short contract naming these states and the difference between them before choosing colors. Otherwise designers can use the same attention cue to communicate quite different events.
Consider a person tabbing from the orchard route to the pond route. If focus simply moves and the orchard remains selected until activation, the map should not imply that the itinerary changed. A brighter focus treatment on the pond control is still necessary, but it should differ from the selection cue. A ring around the button can show where an action will happen, while a persistent selection label says which route's details are open. The point is not to make focus visually unimportant. It is to avoid making it look like a different instruction already took effect.
Hover needs a similar boundary. A pointer resting over an unselected path can reveal its name, but a persistent line style for the selected path should remain recognizable. If the product intentionally uses pointer movement to show a temporary preview, make the preview distinguishable from a committed choice. It should not tell someone that their itinerary was changed unless that is what the control actually does. On touch devices the preview may have different availability. Essential route details should remain reachable without a feature that is only offered through hover.
An unavailable route is another useful check. “Not selected” and “not available” must not be synonyms. An unselected available route should remain findable and actionable. An unavailable one might remain in the map for context, with a readable explanation in the route list, depending on the product's purpose. Using a low-contrast line for both states collapses two distinct questions: can I choose this route, and did I choose it? For any one app choose how the statuses coexist and test a case in which the answer to both questions changes independently.
Finally separate visual selection from what a route represents in the world. A colorful dashed path may already mean a particular route type or terrain. Reusing the same dashed line exclusively for selection could erase that classification. One layer of design should identify or describe the route and another communicate the user's action. Depending on the scene, endpoints, labels, a halo, or a route number may do more work than changing the line's basic color. If a style has two meanings, readers should not have to infer which legend it belongs to.
Contrast and distinguishability are not the same test
The WCAG 2.2 recommendation supplies relevant criteria, including Use of Color, Contrast (Minimum), Non-text Contrast, keyboard operation, and visible focus. Which criteria apply depends on what the component and graphics communicate. Use of Color does not forbid using hue. It addresses using color as the only visual way to convey information or distinguish matters such as state. Non-text Contrast addresses visual information needed to identify user interface components and their states, and parts of graphics required to understand the content, with defined exceptions. Neither should be replaced by an overall judgment that the theme looks clear.
For text, check the words people actually need: the route name, legend labels, start and end markers with text, and explanatory selection status. For meaningful non-text graphics check the actual parts and adjacent colors against which they must be distinguished. For example, a selected line may cross a background area with dark trees, a pale street, and a patterned region. A contrast calculation against the page margin says little about those crossings. The selected line against another route where the two nearly meet may also be relevant to understanding which path continues.
For a visual state distinction, also compare examples directly. Both the selected and unselected lines can be adequately visible individually and still look alike to the reader. If selection is represented by a bright blue line and alternatives by equally bright violet lines, a favorable contrast ratio against the background cannot say whether the user can tell which is active. A persistent checkmark paired with words in the list and a distinguishable extra line treatment on the drawing can help carry the distinction. Test that the extra treatment is actually visible, rather than checking it only on a clean isolated sample in a style guide.
Avoid relying on a magic thickness. A heavy line can be an effective selection cue in a simple diagram. In a crowded map, dense crossing lines and zoom scaling may make the apparent weights hard to compare. A halo may improve continuity across backgrounds but disappear under a marker; a distinctive symbol may be visible at endpoints while telling little about a shared segment. Test the cues against the trouble spots rather than assuming that adding one noncolor cue solves every scene. Redundant cues are most useful when they fail in different ways and when one does not contradict another.
Large-scale meaning can also be lost even though all nearby parts pass their individual checks. If two routes share a stretch, both may be impossible to identify purely by the line on top. Add a label, marker, list description, or another explicit way to communicate that the segment is shared. Position labels so the policy remains clear if the map changes by theme, zoom, or viewport. A route that is visible at every pixel may still be misleading as a route if its endpoints or connections are unclear.
Follow the theme from the preference to the finished map
List the ways a user can arrive at a palette. Some applications follow the system preference. Some offer an authored Light or Dark override, and others use an automatic setting alongside manual choices. Your product's contract should state how these relate. If a person explicitly chooses Light in a dark system setting, test that the interface uses the choice it promised. If they subsequently switch back to System, test that the current system preference is picked up. A night screenshot taken through one path does not verify the others.
The page layout, map surface and selected overlay can honor different mechanisms unless their relationship is deliberate. The page can use the system preference while an embedded map retains its own cached style. The list can switch because its text color inherits a theme setting, while the route line still comes from the previous tile or a fixed asset. This is why reading the page's theme value in an inspector is not enough. Observe the actual result on the map, which may include external tiles, a data overlay, symbols and text layers that update independently.
Changing palette should not recreate the route selection unless the product explicitly resets it for another reason. Test with a nondefault route selected, not only the initial route. Toggle from Light to Dark, inspect the selected route on the map and its companion representation, then switch back. Repeat with the operating system preference change if the product follows it live. If the app reloads or replaces the map, ensure the restored route and related details agree. A selection may look intact because the list rehydrated before the map; check both after the map settles.
The first paint deserves some attention. A component can initially use default route styling while route data or its palette becomes ready. If the product cannot show trustworthy selection yet, a neutral loading representation is better than confidently highlighting a different route. A short transition need not announce every intermediate paint to a reader using assistive technology, but the settled presentation must reflect the correct state. When a route change and a theme change are made close together, check that the later state wins without stale styles attached to the wrong line.
The meaning of the settings itself should be recoverable. An item called “Night” can refer to the color appearance, a map showing routes open at night, or both. If the preference changes presentation only, call it a dark appearance or similarly explicit term. If a product separately filters routes by when they are available, expose that filter distinctly. A reader should not see different routes after selecting a palette unless a separate, clearly explained decision actually caused that difference.
States misread in theme checks
The chart and table use invented counts for four fixed, distinct example cases. Each value is the number of those cases in which the route state remained open to misreading under the specified check. This is not observed user performance, a complete accessibility test, or a conformance score. The first revision resolves two of the four original cases, and the reviewed version resolves the remaining two. The three checkpoints are repeat observations of the same fictional cases rather than three separately sampled maps.
| Review checkpoint | Items |
|---|---|
| Initial draft | 4 |
| Targeted revision | 2 |
| Reviewed version | 0 |
One plausible fixed case list is a dark system palette hiding the selected line where it crosses another route; a Light override failing to update the line layer; a keyboard focus treatment being mistaken for selection in the night route list; and a forced-colors view erasing the visible distinction between active and alternate entries. It is possible to define a state problem in each case before testing. Each should have a specific correction and a narrowly phrased passing condition, not just a report that the new colors are prettier.
Zero unresolved examples means only that the four stipulated checks were satisfied in the invented run. It does not certify underlying route data, the base map's accessibility, or the experience of every user. The WAI images tutorial distinguishes decorative and informative images and explains the need for an equivalent for the information in complex graphics. Here the chart's simple numerical result is available in the matching table, and the imagined street maps in the hero are editorial art. Neither contains actual evidence about a live map.
Build a map fixture that tests the dilemma, not just the palette
Choose a small scene with three routes and a few difficult backgrounds. One route should cross or share a segment with another. One should extend into a complex or particularly bright part of the map. Give each route a distinct identity and enough context to establish that a visitor has really selected it. For example, the Orchard Loop and Pond Spur can share the first turn while continuing toward visibly different destinations. The route list and details should make the choice explicit. The test does not need a real geolocation or the actual conditions of a trail to exercise that problem.
First test a clear default. Open the scene without a stored choice and identify which route, if any, is active. Then select a different route while leaving the palette alone. Look at the line, endpoints and companion list. Can a user tell that the previous route stopped being selected even though it remains available? A recurring bug is to add the new style without removing a halo or label from the old route. If the map appears to have two active itineraries but only one is represented in the list, one interpretation cannot be right.
Then freeze the selection and change the palette. If the map suddenly presents a different active route or the details change, investigate why appearance affected application state. This scenario differs from the previous one, in which the update was requested and the treatment had to follow it. There should be no ambiguity about the expected answer: the same route remains active. Choose a nondefault route so an accidental reset is visible. An initial choice that happens to match the default can make a broken persistence path look correct.
Make the difficult state part of the fixture rather than an accident of geography. Select the route whose line goes behind a point marker or over its alternative. Zoom until the two are visually close, or use a smaller layout that requires labels to rearrange. Is it still possible to follow the selected route where that distinction is necessary? A companion route summary should identify the route even if a tiny line segment is hard to inspect. The visual overview and the text should not give incompatible accounts. They can provide different levels of detail while preserving the user's choice.
Test with all routes unselected if that is a real product state. If no active itinerary is chosen, inspect whether the map communicates the difference between available options and active paths. A route may look emphasized because it is recommended, for instance, but recommendation is not the same as a committed choice. A short prompt like “Choose a route to see details” can remove ambiguity in the list. If the palette adds an accent to a route by default, that accent should not silently imply selection.
Design more than one usable route into the information
An active line on a canvas can convey a great deal visually while exposing almost nothing to an assistive technology. A companion route list or details area can give the same essential identity, current selection, and action as the visual interface where those matter. The list needs to follow the real state, not a description written once at design time. If the map has three alternatives, and the current selection controls which details appear, the text representation should make that state inspectable after each change. It should not simply describe a map as an object with three unknown lines.
The appropriate semantic control depends on the behavior. If a user is making one choice among named route alternatives, a well-labeled group of mutually exclusive controls may express that relationship naturally. If the interface opens one detail panel at a time, choose a suitable pattern for that interaction and test its keyboard behavior. A generic click target is not made easier to understand by adding a state word somewhere unrelated. The visible control, its programmatic name and state, and the activity that follows activation should agree. This article does not assume all maps provide the same kind of selection widget.
When choosing a text equivalent, focus on what the viewer needs rather than listing every pigment. A static map illustrating that the two routes meet at the same gate needs that relationship in its text or surrounding content. An artwork used only to set a mood can be decorative in context, as the WAI images tutorial explains. An interactive map may also need a complete way to choose each route and discover its actual details. Alternative text that says “green line selected” cannot replace a route name or an operable action. Purpose determines the useful content.
Do not add redundant speech to every minor theme change. The user wants to know that an appearance preference took effect and can still determine the active route. They do not necessarily need the route's entire itinerary reread each time a palette changes. A persistent current choice and understandable labels are more durable than a stream of announcements. Conversely, if a user selects a new route and a distant details panel changes without focus moving, brief appropriate status feedback may help. Test the actual experience rather than counting how many invisible messages were authored.
A useful alternative should avoid becoming stale all on its own. For instance, the map may get route geometry from one layer and the list may show a name from an outdated fixture. The audit should track a nondefault route across both, including its identically named but distinct alternative if such a case can occur. A route number, destination or other meaningful identifier can be more useful than visually subtle color words. Save the observed route identity alongside each update so reviewers can catch genuine disagreement rather than argue about appearances.
Review the composited result and the fallback states
Color values in source files are helpful to engineers but do not establish the final rendered contrast. A translucent selected line mixes with the tiles beneath it. The same overlay on two different tiles can have different contrast at the transition. Map symbols can be drawn behind semiopaque panels or antialiased against busy edges. Check the resulting foreground and applicable adjacent colors where the information needs to be read. Do not report a passing ratio measured against an abstract background if the meaningful line is usually rendered over something else.
Roles in the map may require an explicit stacking policy. If an alternative is drawn on top whenever its tile data finish loading last, later responses can hide the chosen path. Selection might justify drawing the active route above alternatives, but that choice can also cover information about a shared segment or intersection. A separate casing or indication of joint use can protect the geometry without destroying context. Test ordering of drawing layers during loading and after switching routes. A consistent toggle should not rely on one lucky response order.
Forced colors are a different testing condition from a typical dark system preference. A browser may substitute system colors for many authored colors, and background images or effects may not behave like ordinary element colors. The Media Queries Level 5 working draft documents both preference and forced-color features; its status as a working draft should not be confused with WCAG conformance criteria. The practical check is whether essential selection cues and controls survive the actual rendering. Text, shapes and symbols that remain distinguishable can help avoid assumptions about authored colors being retained.
If the map itself is supplied as an image or rendered in a layer whose colors do not adapt with the rest of the page, do not assume forced colors solved or broke it by definition. Inspect that particular layer and compare it with the route list. An author choice to opt parts out of color adjustment needs a clear reason and a review of the resulting experience. Foreground and background can otherwise wind up in combinations that defeat a user's chosen palette. An alternate reliable route representation can be important when a graphical service cannot honor every scheme fully.
Check a partially loaded and a failed map, too. If base tiles are unavailable but the path overlay remains, the selected route may still be identifiable while other navigation information is absent. If the user can use a route list and details, make that option easy to find. Do not show a blank rectangle with a selection cue that implies all the relevant information is present. In a testing report distinguish failures of the image service from failures of selection persistence. Both can matter to the person using the page.
Separate appearance controls from map semantics in the implementation
A change of theme can be treated conceptually as a change in styling for existing states. The selected route can be represented by a durable route identity. The renderer reads that identity and applies the appearance corresponding to selection under the chosen palette. If instead the app stores a selected path as a particular hex color or assigns selection according to the most prominent line currently drawn, editing the palette becomes a data migration with surprising consequences. Keep the business meaning and the chosen color as different values.
A shared token for selection can still have several outputs. One form might control a border style in the list, another a line casing on the map, and a third a status label next to the details. The goal is coordinated meaning, not identical styling everywhere. An unselected route remains present and readable according to its role. If an older component treats the same token as a highlight for hover, disentangle those responsibilities before forcing it to take a new dark color. A small palette change can expose a structural problem that existed even though the older design was legible.
Define the precedence of preference settings in one place. A saved user choice might take priority until the person chooses System again. A browser or operating system can provide a preference signal but that is not the same thing as the product's user-facing override. Before comparing screenshots, record which source the app was expected to honor. A test that toggles the operating system while an explicit override is active can reveal whether the precedence is correct. It should not automatically report failure merely because the chosen palette stayed the same.
State persistence can include more than route identity. A user may have zoomed to a difficult crossing or opened information about a particular segment. Switching palette should not unexpectedly make it impossible to see what they were inspecting, even if the active route remains selected. On the other hand, some redraws legitimately need to reconstruct tile resources. Test the settled viewport and focus and decide which changes are acceptable. A note that the visible selection stayed correct can coexist with a separate bug about keyboard focus lost during the redraw.
If several pieces of the route screen are managed independently, define what happens when they change at nearly the same time. Someone can switch palette and then choose a different route before the first redraw finishes. The renderer may need to check that its completed image belongs to the latest route and palette, not just that the image finished drawing successfully. Otherwise a perfectly valid visual state from a previous request can overwrite the newer one. A test with slower resource delivery can reveal this failure without relying on a race that happens only rarely in ordinary development.
Rehearse a person's task in the modes that matter
First ask the tester to identify which route is active without touching the map. This starts with interpretation rather than control operation. The tester should be able to name the route and point to the evidence that distinguishes it from recommendations or alternatives. Next ask them to select an alternative through the route list while keeping their place in the interface, and verify what changed on the map and in the details. Then ask them to change only the appearance. Repeating that same task after rotation or at narrow width can uncover a list that moved far away from the graphic or became unavailable altogether.
For the keyboard path, try moving focus without committing selection if the design makes those different actions. Document how the focus position looks relative to the persistent active route. Activate a new route and observe whether the emphasis moves in both representations and whether focus remains usefully placed. Then change appearance from the relevant control, if one exists. A visually correct redraw can still strand a keyboard user if the page forgets where the currently focused control was. Evaluate the recovery task rather than checking the focus outline in one static capture.
For a screen reader check, follow the corresponding purpose rather than attempting to re-create the sighted pointing task. Ask what route is selected, whether alternatives can be named and operated, and whether the details reached afterward describe the selected route. Check that the appearance setting and the route control have distinct names and state. An app that announces “Dark selected” should not leave the reader thinking they selected a route named Dark. The wording needs context, particularly when settings and travel choices appear in the same menu.
Do not assume a lab's simulation of preference settings covers what people do. It can be a convenient way to inspect media-query conditions in general, but a stored site override, external map component, or persistent browser setting may follow a different route. Record which conditions were emulated and which were tried in the actual environment. For a small team it is better to state the combinations tested clearly than imply that a single toggle verified every operating system, browser or assistive technology.
Establish an expected outcome for each case before the review. For the dark crossing case, an example condition is that the tester can distinguish the selected Orchard Loop both before and after its overlap with the Pond Spur, using meaningful cues independent of hue. For the override case, choosing Light under a dark system preference should update both the map and list's appearance while retaining route selection. The focus case needs a different expectation: keyboard focus on the alternative should not look like navigation has already changed. Such expectations are more falsifiable than a request to check if the map looks polished.
Log the kind of failure so the right repair can reach it
A useful test note includes the selected route ID, the system appearance, the site's override if any, input mode, viewport, and which evidence conflicted. Add an expected state and observed state in words. A defect saying “Pond Spur displayed the selected casing in dark System even though Orchard Loop remained selected in the list” points to a specific problem. A screenshot of two shiny lines may be an excellent attachment, but it does not explain what the app intended or what a programmatic reading of the list could determine.
Distinguish four common repair surfaces. If the wrong route was selected, investigate application state or response order. If the right route is internally selected and drawn incorrectly, investigate mapping or rendering. If it is drawn correctly but users cannot distinguish it, investigate visual treatment or context. If the map is understandable but the companion representation lacks selection, investigate semantics and synchronization. One run may reveal more than one kind of failure. The audit should not arbitrarily assign the entire case to contrast merely because the problem was first noticed in night mode.
Where measurement is appropriate, keep it close to the claim. A contrast note should name the visual part tested, the adjacent foreground and background being considered, and where they occur in the result. Do not call it a whole-map score. A keyboard note should name the task and show at which step the focus became hard to find or confusing to interpret. A name or state note should say how it was exposed and whether a tester could recover it after returning from settings. Those are observations future reviewers can repeat.
Record variants that work but differ. A high-contrast mode might present a plain visible suffix reading “Selected” while the ordinary theme uses a distinctive casing and a list indicator. The experience can be usable in both without the two looking identical. Requiring pixel parity would miss the point of honoring a preference or adaptation. What matters is that the same route is identifiable, alternatives remain understandable, and essential actions stay available under the particular presentation. Give the passing result credit for preserving meaning, not matching one reference image exactly.
Keep the lesson after the map has been revised
Keep screenshots as supporting evidence, not as the whole test. Capture the intended route identity and the control state alongside the picture, so a later reviewer knows what the drawing was supposed to say.
Save a small fixture with known routes, one shared segment, a nondefault selection and recorded expectations for each mode. A new map style or replacement map service should run through those expectations before release. If the new routes introduce different relationships, update the fixture instead of treating old checks as exhaustive. When a change only adjusts the palette, ask which semantics ought to stay fixed. This helps distinguish the smallest useful regression test from a full review of every route or page.
The map's companion text likewise deserves versioning. A future designer may remove a line casing because it seems redundant when viewed next to a list with a visible selection label. That can be a reasonable design decision if the route relationships users need are still understandable at actual sizes and with the relevant preferences. It becomes a problem if the list only names the route and leaves someone unable to connect it to the diagram. Review the information lost, rather than counting independently authored cues and automatically preserving all of them.
Test the legend as well as the selected line. A legend assembled from a static image might retain the daytime symbols below a map that uses different night treatments. If the active route in the legend is only an example, distinguish it from the route currently selected. If it is live, verify that its name and symbol are tied to the same real state as the map. A key can be visually clear and still point readers to the wrong convention.
Small content changes can expose similar assumptions. A label that fits near the middle of the route in one language can overlap its alternate in another or at a larger text size. A shorter route name might make the list feel orderly while the longest name pushes its selection badge beyond a scroll area. Test a representative long name, wrapping, and text enlargement without assuming the only failure possible is a dimmer color. Meaning can disappear because the cue was moved outside its useful context.
Also check the handoff between a route preview and the chosen route's details. A map may show a hovered alternative briefly while still correctly calling the orchard route selected. If a supporting list has already replaced its details with the preview, a reader may receive the wrong itinerary. Decide whether the preview has its own labeled content or simply decorates the drawing. This distinction is worth keeping even if a future visual version looks different, because it tells engineers which parts of the experience must change together and which states can coexist.
There is no need for a night palette to look like daylight. It can have a different texture and some different cues suited to its background. The test is whether those changes preserve identity and action. Someone who selected the orchard route should still be able to discover that fact, tell the route from its alternatives, and proceed to relevant details after switching palette. If they can, the palette has changed the presentation without changing the message. That is the success worth recording, rather than the mere fact that light now looks dark.