Components
Both
src/components/dialog-face.tsxDialog Face
One step of a multi-step dialog. Pairs with AutoHeight: that animates the box, this animates and focuses the face inside it. Replaces the identical five-prop motion.div that was copy-pasted into every multi-step dialog.
It exists for focus. When a face swaps, the control the user just activated is unmounted, and measured, focus fell to the document body, stranding keyboard and screen-reader users. Focus now moves to the face container: inside the dialog, at the top of the new content, and never wearing a button’s focus ring.
Face swap
First face
Taller than the next one, so the swap has a height change to animate. The initial face takes no tabIndex, because the Dialog handles focus when it opens.
Used on
- Console
- /console (every page)/console/business-reporting/btw-hours/console/business-reporting/enrollment/console/business-reporting/fleet-size/console/business-reporting/payroll/console/catalog/console/financials/console/financials/balances/console/financials/earned/console/financials/refunds/console/financials/sales/console/financials/transactions/console/financials/waived-fees/console/fleet/[id]/console/locations/console/locations/[id]/console/locations/franchises/[id]/console/people/console/people/[id]/console/reporting/certificate-upload/console/reporting/dps-report/console/reporting/student-records/console/scheduling
- Portal
- /(student) (every page)/dashboard/dashboard/billing/dashboard/lessons/dashboard/refer