Logo FS-Skia-UI

Controls Gallery — Overlays & Feedback Page Spec

Inherits the shell, palette, pointer contract, keyboard contract, and determinism rules from 00-controls-gallery-overview.md.

Goal

Demonstrate the overlay and feedback controls — tooltip, modal dialog, layered overlay, transient toast, determinate progress, indeterminate spinner, and validation message — triggered and dismissed by pointer, with correct modality and focus handling.

Controls Demonstrated

Control

Module

Required

Events

Demonstrates

tooltip

Tooltip

text

Hover/focus auxiliary explanation

dialog

Dialog

children

onSelected

Modal content region

overlay

Overlay

child

Layered content above the page

toast

Toast

text

Transient status message

progress-bar

ProgressBar

value

Determinate progress

spinner

Spinner

Indeterminate progress

validation-message

ValidationMessage

text

Model-tied validation text

User Experience

The page presents trigger buttons that raise each overlay: a modal dialog that traps focus until dismissed, a non-modal overlay layer, and a toast that appears and auto-dismisses. Live progress and spinner indicators animate, and a small form shows validation messages reacting to input. Tooltips appear on hover throughout.

Layout

Mouse & Pointer Interactions

Keyboard

Core Behaviors

Data Model

Visual / Palette Requirements

App State

Track: dialog/overlay open flags and result; toast queue and timers; progress value and busy flag; validation value and state; tooltip target; focus-return target.

Determinism and Evidence

Acceptance Criteria

Out of Scope

Type something to start searching.