mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 04:04:25 +00:00
inspect::record shows a region and records, in real runs, every component shown in it (box, box inside its padding, depth, and the access facts step 16 wrote, named by their labels as a screen reader reads them), the sensing core's hit areas of those components at their least size in tree order, and the focus stops numbered in Tab order: every member of a roving group, whatever the platform's Tab setting. Inside a region nodes are reported whether or not AccessKit runs. The record is kept as a value: a reader shown earlier in the pass (inspect::recorded, inspect::pointed) reruns the pass when the record changes. Recording is on in fixture frames and inside an open region; FrameInput.inspect and the focus state's all_controls go. InspectOverlay (display) draws a record as the old gallery inspector did, cut to the region: padding bands, hit areas with small ones flagged, numbered focus badges, and a marquee on the element the list points at. Row, Stack and Grid take indent(levels), a start padding of space.pad.regular per level, and hover(), which gives the root Sense::HOVER so its response reports the pointer. Text takes italic(). While the Inspect panel is in front of the components workspace and no Variants view is open, the selected card of the Overview or of the selected component's tab shows each story as an inspected region with the overlay over it. The Inspect panel lists the Padding, Hit areas and Focus order switches, the flag note, one section per story with a row per element (number, role, name, value, actions, state, "no label"), indented by depth, whose hover marks the element on the card, and the declared facts as the last section.