Interaction Design and Prototyping Questions
Designing how a product behaves and expressing it as testable artifacts: ideation and sketching, low- to high-fidelity prototypes, interaction patterns, and interactive specifications. Covers rapid solution exploration, choosing prototype fidelity for the question at hand, and designing real-time and dynamic interactions. The craft of turning concepts into interactive form.
Design an accessible date-picker for a travel booking site. Describe keyboard interactions, ARIA roles and screen reader labels, focus management, mobile behavior, and the trade-offs of adding advanced features like multi-month view versus keeping it simple for accessibility.
Sample Answer
Start with the product goal: a date-picker that maximizes booking task success (fast selection, low error) for the broadest set of users including keyboard-only and screen-reader users, while keeping mobile flows simple.
Keyboard interactions
- Launch: Enter/Space on the input opens the calendar and moves focus to the selected date or the first focusable day.
- Arrow keys: Left/Right move by day; Up/Down move by week (roving tabindex pattern: only one day is a tab stop at a time, and arrow keys move which day that is, so tabbing through 30+ days does not take 30+ tab presses).
- PageUp/PageDown: move one month back/forward; Shift+PageUp/Shift+PageDown move a year.
- Home/End: go to first/last day of the month.
- Enter/Space: select date(s); Esc: close and restore focus to input.
- Tab/Shift+Tab: allow exit from the widget; do not trap focus permanently. In a modal version, trap focus but ensure Esc restores it to the input.
ARIA roles and screen reader labels (what each one is actually doing)
ARIA (Accessible Rich Internet Applications) is a set of extra attributes that tell assistive technology, like a screen reader, what a hand-built widget is and how it is changing, since a custom calendar grid does not carry that meaning the way a native browser control does.
- role="dialog" tells a screen reader "this is a self-contained popup," used for modal pickers; role="application" (only if truly needed, avoid otherwise) tells it to hand off normal reading-mode shortcuts to the widget's own key handling, reserved for cases where the keyboard behavior is too complex for the default reading mode.
- Calendar grid: role="grid" announces "this is a spreadsheet-like grid you can navigate with arrow keys"; role="row" marks each week; role="gridcell" marks each day, so a screen reader user gets proper grid navigation instead of hearing a flat list of buttons.
- Each day carries aria-selected="true/false" (announces whether this is the currently chosen date), aria-disabled for unavailable dates (announces "this option cannot be chosen"), and aria-current="date" for today (announces "this is today," distinct from the selected date).
- aria-label gives the whole grid a spoken name (e.g., "July 2026 calendar") and gives each day button a full spoken description, such as "July 15, 2026, available, selected," instead of the screen reader just reading the bare number "15."
- aria-live="polite" marks a region that gets announced automatically whenever its content changes, without the user needing to navigate to it: for example "July 2026 shown" when the visible month changes, or "Start date selected: July 15, use arrow keys to choose end date" for range selection.
Focus management
- Implement the roving tabindex pattern described above on day buttons.
- On open, focus the selected date or the nearest available one.
- When the calendar closes, return focus to the input and set its value; announce selection changes via the aria-live region for screen-reader users.
- For errors (invalid range), move focus to a concise inline error, linked to the input with aria-describedby (an attribute that tells the screen reader to also read out the linked error text whenever focus lands on that input, the non-visual equivalent of a red message under the field).
Mobile behavior
- Prefer native date controls when available (input type="date") for faster, accessible experiences on mobile browsers.
- If a custom UI is required (e.g., range selection), use a full-screen modal with large touch targets (at least 44px), clear Next/Prev month buttons, and simplified gestures. Provide an explicit "Done" action to commit selection rather than relying on an implicit close.
- Support alternative input: keyboard entry with masked input and validation, and voice labels for screen readers.
Trade-offs: multi-month vs simple single-month
- Multi-month (2-3 months visible)
- Pros: reduces navigation for people comparing dates, improves speed for power users and business metrics (fewer clicks).
- Cons: increases cognitive load (more items to scan), larger DOM (more on-screen elements to render, which costs performance), more complex keyboard-focus rules and screen-reader announcements.
- Keep simple (single-month by default)
- Pros: simpler keyboard and focus model, fewer accessibility pitfalls, better for low-vision users who zoom, smaller DOM.
- Cons: extra navigation steps for users who compare across months.
Recommendation (product-level)
- Default to a single-month accessible widget; implement multi-month as a progressive enhancement behind a feature flag and A/B test:
- Metrics: time-to-select, conversion rate, keyboard-user completion rate, error rate, support tickets.
- Roll out multi-month to segments and measure improvements for high-frequency travelers against accessibility test results.
- Invest in automated and manual accessibility testing (axe, an automated accessibility-scanning tool; NVDA/VoiceOver, the two most common screen readers) and include keyboard-first QA in acceptance criteria.
- Provide a responsive rule: show multi-month on wide screens, single-month on small screens, and always keep the keyboard behavior predictable regardless of which is shown.
This balances usability, accessibility, engineering cost, and business value while leaving room for iterative improvement driven by data and accessibility testing.
You're prototyping an admin dashboard with tables, modals, and inline-edit controls. How would you validate that it's actually keyboard-operable, including focus management for the modals, and what would you check before calling it done?
Sample Answer
Direct answer
I validate keyboard operability by actually using only the keyboard, no mouse, through every control in the dashboard, tables, modals, inline edit, because a checklist read in isolation misses the failure modes that only show up when you try to do the task blind to the mouse. Focus management specifically means deliberately controlling which element has keyboard focus, the current typing or activation target, whenever the interface changes state, most importantly when a modal opens or closes, rather than letting focus land wherever the browser defaults it to.
Keyboard-only walkthrough, using one inline-edit-to-delete flow
- Tab through the table: focus should move in a logical order, row by row, left to right within a row, landing visibly, a clear focus outline, not just a subtle color shift, on each interactive control, including the inline-edit trigger and any per-row action buttons.
- Activate inline edit: pressing Enter on a row's edit control should move focus directly into the first editable field, not leave it sitting on the button that was just pressed.
- Edit and save: Tab moves between fields as expected; pressing Enter saves and returns focus to the now-updated cell, not the top of the table, so the user doesn't lose their place. Pressing Escape cancels and returns focus to the edit trigger that opened it.
- Open the delete confirmation modal: focus must move into the modal, typically to a non-destructive default like the Cancel button so a stray Enter press doesn't confirm a delete, and while the modal is open, Tab must cycle only between the modal's own controls, a focus trap, meaning the background table is temporarily unreachable by keyboard even though it's still visible.
- Close the modal, via Cancel, Confirm, or Escape: focus must return to the exact button that opened it, since dropping focus back to the top of the page forces a keyboard user to re-navigate the entire table to get back to where they were.
What I'd check before calling it done
- A full keyboard-only pass through every interactive control, not just the happy path, using Tab, Shift+Tab, Enter, Space, and Escape.
- Focus visibility on every control, a focus ring that's actually visible against the background, not just present in the code.
- The modal focus trap specifically, tested in both directions, confirming background content is genuinely unreachable, not just visually dimmed.
- A quick screen reader spot-check, for example NVDA or VoiceOver, on the inline-edit and modal flows specifically, since those two patterns are most likely to silently break for assistive technology even when they look fine visually.
- An automated accessibility scan, for example axe or a Lighthouse accessibility audit, as a floor, not a finish line, since these tools reliably catch missing labels and contrast issues but cannot verify that a focus trap or tab order actually makes sense.
Fidelity needed to validate this properly
This check genuinely needs a coded, interactive build rather than a click-through in a design tool, because tab order, focus traps, and screen-reader announcements are behaviors a static design tool cannot simulate. Treat this as one of the places in a project where fidelity has to go up early, specifically for this class of validation, even if the surrounding visual design is still rough.
Trade-offs and pitfalls
It's tempting to treat a clean automated-scan report as "done," but automated tools structurally cannot catch whether the tab order is logical or the focus trap actually works, both of which require a human keyboard-only pass. Budget time for the manual pass as a required step, not an optional extra.
A feature you're prototyping needs to behave consistently across web, iOS, and Android, including when things go wrong: slow networks, empty results, timeouts. How would you document that behavior so each platform team implements it the same way?
Sample Answer
Direct answer
I'd pick one concrete feature, define its behavior as a state machine independent of platform, what triggers each state, what the user sees, how long the system waits before changing state, and hand every platform team the same specification table. That way "consistent" means the same trigger produces the same wait time and the same message everywhere, even though the exact widget used to show it, a banner on web, a native toast on Android, an alert on iOS, can differ.
Worked example: a search-results list
| State | Trigger | Timing | What the user sees | Notes across platforms |
|---|---|---|---|---|
| Loading | Search submitted | Show a skeleton immediately if no response within 300ms; faster responses just show results | Skeleton rows | Same skeleton pattern, native on each platform |
| Slow network | Still loading past 300ms | Skeleton persists; after 10s, show "This is taking longer than usual" with a retry option | Inline message under the skeleton | Same copy and timing everywhere |
| Timeout | No response after 20s | Replace skeleton with an error state and a Retry action | Error state + Retry button | Same copy and threshold on web, iOS, and Android |
| Empty results | Request succeeds with zero results | Immediately, no artificial delay | "No results for '{query}'. Try a different search." plus a suggested action | Same copy, platform-native empty-state layout |
The 300ms, 10s, and 20s thresholds are conventions this team would pick and pin for this feature, not universal constants; the point of writing them down explicitly is that "slow" and "timeout" mean the same number of seconds on every platform, not each engineer's own guess.
How I'd document it so each team implements it the same way
- A single trigger-to-state-to-timing-to-copy table as the source of truth, referenced by all three platform tickets, instead of three separate specs that can drift apart.
- Explicit accessibility notes per state: what a screen reader announces when the state changes, for example the error state should be announced through each platform's live-region equivalent, since a visual-only spec silently produces three different, inconsistent screen-reader experiences.
- Acceptance criteria written as testable statements, "given no network response after 20 seconds, the user sees the timeout state with a Retry action," rather than descriptive prose, so each platform's QA can verify the same behavior independently.
- A single walkthrough meeting with all three platform leads together, not three separate handoffs, specifically to catch platform-specific assumptions, for example "Android already has a system-level offline banner, do we need our own too," before they cause the builds to diverge.
Trade-offs and pitfalls
Specifying identical timing and copy is achievable; specifying identical motion or exact visual chrome usually isn't worth the fight, since each platform has conventions users already expect, a native-feeling error toast on Android versus an iOS-style alert. Push for consistency in what the user learns and how long they wait, not in pixel-for-pixel appearance.
A checkout form needs to keep working when the network is unreliable and users might double-submit. Walk through how you'd think about and represent all the states this interaction can be in, from validation through a slow or failed network request, and what's easy for a state table like this to miss.
Sample Answer
Direct answer
Treat network and submission behavior as first-class states, not error handling bolted onto a happy path. The real state set is a small grid: the form's own validity crossed with what the network is doing, plus a couple of special cases (a duplicate submission, a rollback) that most state tables forget because they only show up under real network conditions.
Structured elaboration
Build the grid in two layers instead of one flat list:
- Form-level states: idle, editing (with inline validation), and ready to submit.
- Network states layered on top of "submitting": in-flight, slow (past a wait threshold), succeeded, failed, and duplicate-detected.
Two design decisions do most of the work here:
- Disable the submit control and attach an idempotency key, a unique ID generated on the client and sent with the request, so if the same request somehow fires twice (a slow tap, a retry, a page reload), the server can recognize it as the same attempt and only apply it once, instead of double-charging or double-submitting.
- Decide up front whether you're using optimistic UI, meaning you show the user a success state immediately, before the server has actually confirmed anything, to make the interaction feel instant. If you do, you owe the user an honest rollback state for when the server later disagrees.
Worked example
A coupon field is a small, concrete version of the same problem. A user types "SAVE20" and tabs out. The field shows "Checking..." for a moment, then, optimistically, the UI updates immediately: "20% off applied, discount $20 off a $100 order, new total $80," before the server has actually validated the code. If the server comes back and rejects it (the code expired), the UI has to roll back cleanly: "SAVE20 is no longer valid, discount removed, total back to $100," not just a silent revert that leaves the user unsure what happened to their order.
Trade-offs and pitfalls
Three things a state table like this is easy to miss. First, the "looked successful, then unwound" state: most tables define errors as something that blocks submission, not something that happens after the UI already told the user it worked, which is exactly what optimistic UI needs. Second, double-submission from a page reload or the back button mid-request, disabling the submit button only prevents a second local click, it does nothing if the whole page reloads and resubmits, so the idempotency key has to be the real defense, not the disabled button. Third, what happens to a slow request after the user has already given up and left the page, if the state isn't persisted somewhere the user can return to, they'll see a stale "still submitting" state days later instead of the real outcome.
How would you prototype and test microinteraction timing and easing (for example: button press ripple versus modal spring) to evaluate perceived responsiveness? Include methods for creating variations, collecting feedback, and deriving a recommended timing/easing spec for developers.
Sample Answer
Approach overview
I prototype fast, test with users, and convert perceptual results into developer-ready timing/easing specs. My goal: match motion to intent (micro vs macro) and optimize perceived responsiveness.
Creating variations
- Build lightweight prototypes in Figma (Smart Animate), Principle, or Framer. Export multiple variants: short (80-120ms), medium (200-300ms), long (400-600ms); easing: linear, ease-in, ease-out, cubic-bezier presets, and spring settings. A spring-based animation is controlled by stiffness (how fast the spring snaps toward its target position, higher feels snappier) and damping (how much it overshoots and wobbles before settling, higher damping settles faster with less bounce).
- Keep other variables constant (color, size) so timing is isolated.
- Produce side-by-side and single-interaction A/B flows and an interactive gallery users can trigger.
Worked example: choosing one value for a button-press ripple
Rather than leaving the recommendation as an 80-160ms range, walk one interaction all the way to a chosen number. Build the button ripple at 80ms, 120ms, and 160ms and show all three to a handful of test users side by side. In a scenario like this, 80ms tends to feel abrupt and easy to miss, 160ms starts to feel like a delay, and 120ms with ease-out is typically the one most people describe as "instant but still visible." That is the value that ships in the spec: 120ms, cubic-bezier(0.0, 0.0, 0.2, 1). The same process, build 3 candidate values, test head to head, pick the one that reads as immediate without feeling invisible, applies to any interaction in the range, not just this one.
Collecting feedback
- Moderated usability sessions: task-based scenarios (e.g., "dismiss modal", "tap button"); ask for immediate impressions and preference.
- Quantitative: measure perceived latency with first-click-to-feedback and success time; use a 7-point Likert scale (a numbered agree/disagree rating) for responsiveness, naturalness, and delight.
- Qualitative: concurrent think-aloud and short interviews to surface friction.
- Rapid remote tests: use tools like Maze to collect preference votes and quick reaction times from larger samples.
Analyzing and deriving the spec
- Identify the variants with the highest perceived responsiveness and task efficiency. Prefer shorter durations for tactile microinteractions (e.g., button ripple 80-160ms, landing on 120ms per the worked example) and a physics-based spring for spatial movements (modal open 240-400ms with moderate damping).
- Translate to developer tokens: duration, easing (cubic-bezier or spring params), delay, and motion role, meaning whether the animation is critical (must be seen to understand what happened, e.g. a modal appearing) or decorative (nice to have but safe to skip, e.g. a subtle hover glow).
- Deliver a spec doc: examples, GIFs, accessibility notes (reduce-motion alternatives), and code snippets (CSS cubic-bezier and JS spring values).
Outcome and rationale
I prioritize task speed for micro feedback, and momentum/weight for modal transitions, backed by measured preferences and performance data, so engineers can implement consistent, perceptually-optimized motion.
Unlock Full Question Bank
Get access to all Interaction Design and Prototyping interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.