# Solved Problems in UX

Solved Problems in UX is a reference of recurring web interface problems, each with a clear recommendation and the evidence behind it. Every rule is graded: Settled means required by WCAG 2.2 AA or binding law, or shown by replicated research; Strong means a rigorous study that fits, with agreement and no credible dissent; Moderate means practitioner research or agreement across established design systems; Weak means a small or mixed body of evidence or a reasoned step; Unsettled means the evidence does not decide it, and a default is given.

Site: https://uxreference.com/
Use it with AI: https://uxreference.com/use-with-ai

## Forms

- [Asking for personal data and saying why](https://uxreference.com/forms/asking-for-personal-data): Ask only for what the service will use, and say why next to anything people may not expect.
- [Autofill and identifying input purpose](https://uxreference.com/forms/autofill): Mark each field with what it is for, and never block autofill, pasting or password managers.
- [CAPTCHA](https://uxreference.com/forms/captcha): Check for bots without asking anything of people, and show a puzzle only when that check is unsure.
- [Checkboxes vs toggles](https://uxreference.com/forms/checkbox-toggle): Use a switch for a setting that takes effect at once, and a checkbox for a choice that waits for submit.
- [Email](https://uxreference.com/forms/email): Use an email field and check only that the address looks plausible. Suggest a fix for likely typos, but let people continue.
- [Entering a date](https://uxreference.com/forms/date-input): Let people type a date they know. Show a calendar only when they are choosing one, and still let them type.
- [Error message content](https://uxreference.com/forms/error-messages): Say which field is wrong and how to fix it, right next to the field.
- [Error summaries](https://uxreference.com/forms/error-summary): After a failed submit, list every error at the top, each linking to its field, and keep the message at each field too.
- [Field width as a hint](https://uxreference.com/forms/field-width): Size each field to the length of the answer you expect.
- [File upload](https://uxreference.com/forms/file-upload): Always offer a button that opens the file chooser, and state accepted types and sizes before people choose.
- [Input masks and formatting as you type](https://uxreference.com/forms/input-masks): Accept the separators people type and clean them up yourself, and show the expected shape outside the field.
- [Labels](https://uxreference.com/forms/labels): Give every field a visible label that stays in place while people type.
- [Name](https://uxreference.com/forms/name): Accept names as people write them, in any script, and do not require exactly two parts.
- [One-time codes](https://uxreference.com/forms/one-time-code): Use one field that can be pasted into and filled automatically, and do not submit by itself.
- [Password creation](https://uxreference.com/forms/password-create): Require length, not character mixes, allow password managers, and offer a way to show the password.
- [Payment card](https://uxreference.com/forms/payment-card): Take the card number in one field, with or without spaces, and work out the card type yourself.
- [Phone number input](https://uxreference.com/forms/phone): Ask only if you will use it, take it in one field, and accept the number however it is written.
- [Placeholder text](https://uxreference.com/forms/placeholder): Do not use placeholder text as a label or for instructions. Put both outside the field.
- [Postal address](https://uxreference.com/forms/address): Offer an address lookup where the data is reliable, and always let people type the address by hand.
- [Preserving input after an error](https://uxreference.com/forms/preserve-input): Never make people type something twice. Keep what they entered through errors and back steps.
- [Progress through steps](https://uxreference.com/forms/step-progress): In a flow of three or more steps, show the steps and where people are. Do not expect a progress bar to keep them going.
- [Required and optional fields](https://uxreference.com/forms/required-optional): Mark at each field whether it is required, and require only what the task cannot do without.
- [Saving and resuming](https://uxreference.com/forms/save-resume): When a form needs things people may have to go and find, let them save and come back.
- [Selects vs radios vs comboboxes](https://uxreference.com/forms/select-radio-combobox): Show a few options as radio buttons. For a long list, let people type.
- [Show password](https://uxreference.com/forms/password-show): Hide the password by default, with a control that shows it.
- [Single page vs multi-step](https://uxreference.com/forms/single-vs-multistep): Add a review step before anything that commits people, and use steps when questions branch.
- [Sliders](https://uxreference.com/forms/slider): Use a slider only for rough values. For an exact value or a rating, use a typed field or radio buttons.
- [Stating format requirements](https://uxreference.com/forms/format-requirements): Remove format rules where you can. Where you cannot, state them before people type.
- [Submit button state](https://uxreference.com/forms/submit-state): Keep submit usable so it shows what is missing, and stop a second submission while the first is processing.
- [When to validate a form field](https://uxreference.com/forms/validation-timing): Check on submit, and do not show an error until people have finished the field.
- [ZIP and postal codes](https://uxreference.com/forms/postcode): Accept ZIP and postal codes however they are typed, and don’t require one where people may not have one that works.

## Navigation

- [Breadcrumbs](https://uxreference.com/navigation/breadcrumbs): On sites with several levels, show where the page sits in the structure, not the route people took.
- [Hidden vs visible menus on small screens](https://uxreference.com/navigation/small-screen-menu): Show the links when they fit. When some must be hidden, keep the most used ones visible.
- [In-page navigation](https://uxreference.com/navigation/in-page): On a long page with distinct sections, list links to them near the top.
- [Links vs buttons](https://uxreference.com/navigation/links-vs-buttons): Use a link to go somewhere and a button to do something.
- [Mega menus](https://uxreference.com/navigation/mega-menu): Wait a moment before opening or closing on hover, and make the whole menu work from the keyboard.
- [Opening links in new tabs](https://uxreference.com/navigation/new-tab): When a link opens a new tab, say so in the link.
- [Pagination vs infinite scroll vs load more](https://uxreference.com/navigation/pagination-scroll-loadmore): Show short lists whole. When people search or compare, use pages or a Load more button, not endless scrolling.
- [Primary navigation](https://uxreference.com/navigation/primary): Use clear, familiar labels, keep navigation the same on every page, and mark where people are.
- [Skip links](https://uxreference.com/navigation/skip-links): Give keyboard users a way past repeated blocks: a skip link first in the focus order, and a heading for each section.
- [Tabs](https://uxreference.com/navigation/tabs): Use tabs only for distinct sections people do not need side by side, and never hide what most people need.
- [The back button](https://uxreference.com/navigation/back-button): Make Back return to the view people last saw, with their place and their input restored.

## Search

- [Faceted filters](https://uxreference.com/search/facets): Show the applied filters together, each one removable, and keep them in the page address.
- [Query suggestions](https://uxreference.com/search/suggestions): Put the most likely suggestions first, and keep what people typed in the field.
- [Results pages](https://uxreference.com/search/results): Put the best match first, and make each summary say what the item really is.
- [Sorting](https://uxreference.com/search/sorting): Always show which sort order is in use, and keep it across pages and Back.
- [The search field](https://uxreference.com/search/field): Show an open search field, keep the query in it on the results page, and search the whole site.
- [Zero results](https://uxreference.com/search/zero-results): Say plainly that nothing matched, keep the query editable, and offer ways forward.

## Feedback and status

- [Empty states](https://uxreference.com/feedback/empty-states): Never leave an empty area blank. Say why it is empty, and give a way to start or recover.
- [Loading indicators](https://uxreference.com/feedback/loading): Show nothing for waits under a second, and limit the loading state to the part that is loading.
- [Offline and failure states](https://uxreference.com/feedback/offline-failure): Say plainly what went wrong and what people can do, and keep what they entered.
- [Optimistic updates](https://uxreference.com/feedback/optimistic): Show results early only for small, reversible actions. Wait for the server for anything that matters.
- [Progress indicators](https://uxreference.com/feedback/progress): For work over about ten seconds, show how much is done, and never move the bar backwards.
- [Response time thresholds](https://uxreference.com/feedback/response-time): Treat every delay as a cost, and acknowledge every input at once.
- [Skeleton screens](https://uxreference.com/feedback/skeleton): Do not expect skeleton screens to make loading feel faster. Use them only for the first load of a page.
- [Success confirmation](https://uxreference.com/feedback/success): Say what happened and what comes next, where people will notice it.
- [Toasts and notifications](https://uxreference.com/feedback/toasts): Use messages that vanish by themselves only for things people can afford to miss.

## Dialogs and overlays

- [Confirmation dialogs](https://uxreference.com/dialogs/confirmation): Confirm rarely, label the buttons with what they do, and for severe actions make people engage with the detail.
- [Drawers](https://uxreference.com/dialogs/drawers): Put a panel beside the content when people need both, and send long work to its own page.
- [Focus management on open and close](https://uxreference.com/dialogs/focus-management): Move focus into a dialog when it opens, and back to the control that opened it when it closes.
- [Modal dialogs](https://uxreference.com/dialogs/modal): Use a modal only when people must respond before anything else, and only after their own action.
- [Popovers](https://uxreference.com/dialogs/popovers): Open popovers on click, not hover, and close them with Escape or a click outside.
- [Tooltips](https://uxreference.com/dialogs/tooltips): Never put anything people need in a tooltip. Keep it on the page.

## Content

- [Accordions](https://uxreference.com/content/accordions): Collapse only content most people do not need, and let several sections stay open at once.
- [Carousels](https://uxreference.com/content/carousels): Do not put needed content after the first slide, and stop any rotation as soon as people interact.
- [Charts and their accessible alternatives](https://uxreference.com/content/charts): Give every chart a text description and its data as a table, and never use color alone.
- [Data tables](https://uxreference.com/content/tables): Use real tables with marked-up headers, and keep the identifying column first.
- [Truncation and read more](https://uxreference.com/content/truncation): When text is cut short, let everyone reach the full text, and never cut what people use to tell items apart.

## Deleting and undoing

- [Confirming vs undoing a destructive action](https://uxreference.com/deleting/confirm-vs-undo): Act at once and offer undo. Ask “are you sure?” only when it truly cannot be undone and is rare.

## Accounts and sign-in

- [Log in](https://uxreference.com/accounts/log-in): Never block paste or password managers, and slow repeated attempts instead of locking people out.
- [Passkeys](https://uxreference.com/accounts/passkeys): Offer passkeys at sign-up and recovery, and show people where each one lives and how to remove it.
- [Password reset](https://uxreference.com/accounts/password-reset): Send a single-use, expiring link to a confirmed address, and do not use security questions.
- [Sign up](https://uxreference.com/accounts/sign-up): Do not require an account where the service works without one, and ask only for what the account needs.
- [Social sign-in](https://uxreference.com/accounts/social-sign-in): Say what each provider will share before people choose, and always offer a sign-in that needs no third party.

## Shopping and subscriptions

- [Canceling a subscription](https://uxreference.com/shopping/cancellation): Let people cancel online the way they signed up, and confirm it at once in writing.
- [Checkout steps](https://uxreference.com/shopping/checkout-steps): Before the order is placed, show what is being bought and the total, with a review where each part can be changed.
- [Guest checkout](https://uxreference.com/shopping/guest-checkout): Always let people buy without an account, and offer one after the purchase.
- [Price display](https://uxreference.com/shopping/pricing): Show the total, with every mandatory fee, wherever a price first appears.
- [Shopping cart](https://uxreference.com/shopping/cart): Confirm what was added, show the full cost before checkout, and keep the cart between visits.
- [When to ask for an account](https://uxreference.com/shopping/account-timing): Let people look and buy before asking for an account, and offer one afterwards.

## Consent and permissions

- [Browser permission prompts](https://uxreference.com/consent/browser-permissions): Ask for a permission only when people use the feature that needs it, and say why first.
- [Cookie consent](https://uxreference.com/consent/cookies): Never pre-check consent, put refusal on the first screen as plainly as acceptance, and let people change their mind later.
- [Email preferences](https://uxreference.com/consent/email-preferences): Leave marketing boxes unchecked, and word the choice positively.
- [Notification opt-in](https://uxreference.com/consent/notifications-opt-in): Ask for notifications only when people act to turn them on, never when they arrive.
- [Unsubscribe](https://uxreference.com/consent/unsubscribe): Put a one-step unsubscribe in every marketing email, and stop sending quickly.

## Help and onboarding

- [Contextual documentation](https://uxreference.com/help/contextual-docs): Put help next to the part of the page it concerns, in the same place on every page.
- [First-run experience](https://uxreference.com/help/first-run): Let people start at once, and teach in context where the product is complex.
- [Inline help](https://uxreference.com/help/inline): Keep the rules people must follow visible next to the field, not behind an icon.
- [Tours and coach marks](https://uxreference.com/help/tours): Do not rely on tours. Show one tip at a time, when it is needed, and let people dismiss it.

## Accessibility

- [Announcements to screen readers](https://uxreference.com/accessibility/announcements): Announce results, errors and progress without moving focus, politely, and only what people need.
- [Keyboard operation](https://uxreference.com/accessibility/keyboard): Make everything work from the keyboard, in a sensible order, with the keys people expect.
- [Reduced motion](https://uxreference.com/accessibility/reduced-motion): Never flash, let people pause moving content, and remove decorative motion when they ask for less.
- [Target size](https://uxreference.com/accessibility/target-size): Make every target at least 24 by 24 pixels, and bigger for touch.
- [Time limits](https://uxreference.com/accessibility/time-limits): Avoid time limits. Where one is needed, warn before it ends and let people extend it.
- [Visible focus](https://uxreference.com/accessibility/focus-visible): Always show where keyboard focus is, and never cover it.

## Mobile and touch

- [Gestures](https://uxreference.com/mobile/gestures): Give every gesture a visible single-tap alternative, and act when the finger lifts.
- [Input modes and on-screen keyboards](https://uxreference.com/mobile/input-modes): Show the keyboard that matches each field, but accept the same input whatever keyboard appears.
- [Reachability](https://uxreference.com/mobile/reachability): Expect one-handed use, and do not assume a bigger phone means a bigger reach.
- [Touch targets](https://uxreference.com/mobile/touch-targets): Make tappable controls about 44 to 48 points, and extend small controls’ tap areas without overlap.

## AI interfaces

- [Conversational and AI interfaces](https://uxreference.com/ai/conversational): Say it is an AI, what it can do and how reliable it is, and offer another route when it fails.
- [Generated content and its provenance](https://uxreference.com/ai/provenance): Mark generated content in machine-readable form, and make every cited source openable and relevant.
- [Streaming responses](https://uxreference.com/ai/streaming): Respond at once, keep the start of the answer in view, and give a way to stop.

## Dark patterns

- [Confirmshaming](https://uxreference.com/dark-patterns/confirmshaming): Label the way out as plainly as the way in. “No thanks” is enough.
- [Disguised ads and false signals](https://uxreference.com/dark-patterns/disguised-ads-and-false-signals): Label ads as ads, and show a badge only when the check behind it happened.
- [Drip pricing and hidden costs](https://uxreference.com/dark-patterns/drip-pricing): Show the total, with every mandatory fee, wherever a price first appears.
- [Fake scarcity and social proof](https://uxreference.com/dark-patterns/fake-scarcity-social-proof): Mention stock or popularity only when it is true and matters to the choice, as a plain fact.
- [Fake urgency](https://uxreference.com/dark-patterns/fake-urgency): State a real deadline plainly, or none at all. Never a countdown that resets.
- [False hierarchy and unequal choices](https://uxreference.com/dark-patterns/false-hierarchy): Make refusing as easy as agreeing: on the same screen, as the same kind of button, in as many steps.
- [Forced action](https://uxreference.com/dark-patterns/forced-action): Let people get what they came for without an unrelated step, such as making an account.
- [Hard to cancel](https://uxreference.com/dark-patterns/hard-to-cancel): Let people leave the way they joined: online, in a few steps, with the end date confirmed.
- [Hidden subscriptions and trial traps](https://uxreference.com/dark-patterns/hidden-subscription): Next to the button that starts it, say the price, when it renews and how to stop it.
- [Nagging](https://uxreference.com/dark-patterns/nagging): Take no for an answer. After a refusal, don’t ask again.
- [Pre-selected options](https://uxreference.com/dark-patterns/preselection): Start every choice that costs money or shares data unselected, so that doing nothing means no.
- [Privacy-intrusive defaults](https://uxreference.com/dark-patterns/privacy-intrusive-defaults): Start every sharing setting at its most private, and ask only for what the service needs.
- [Sneaking into the cart](https://uxreference.com/dark-patterns/sneak-into-basket): Put in the cart only what people chose. Offer extras; never add them.
- [Trick questions](https://uxreference.com/dark-patterns/trick-questions): Word each choice as a plain, positive statement, so that checking the box means yes.
- [Accidental and unauthorized charges](https://uxreference.com/dark-patterns/unauthorized-charges): Charge only after a deliberate step that plainly says it pays and names the amount.

## Research foundations

- [Visual search: finding takes longer with more items, and changes can go unseen](https://uxreference.com/research/visual-search)
- [Recognition is more accurate than recall](https://uxreference.com/research/recognition-recall)
- [Response time: slower responses reduce use, and the 0.1 / 1 / 10 second limits are estimates](https://uxreference.com/research/response-time)
- [Working memory holds only a few items at once](https://uxreference.com/research/working-memory)
- [Hick-Hyman law: choice time grows with the log of the number of options](https://uxreference.com/research/hick-hyman)
- [Reading on screens: people scan, and concise structured text works better](https://uxreference.com/research/reading-behavior)
- [Fitts's law: bigger and nearer targets are faster to hit](https://uxreference.com/research/fitts-law)
