You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
demo(contract-templates): add "Locate" to scroll to a field/clause control
Each field row and clause card gets a Locate button that resolves the control
by tag (selectByTag) and calls ui.contentControls.scrollIntoView({ id, block:
'center' }) - dogfooding the shipped SD-3310 API in the demo. Scroll-only
("Locate", not focus; focus/activate is SD-3312). Adds a demo smoke asserting
that clicking a lower clause's Locate scrolls its control into view.
<button class="locate" type="button" data-locate-field="${escapeAttr(field.key)}" aria-label="Locate ${escapeAttr(field.label)} in the document" title="Scroll to this field">Locate</button>
<button class="locate" type="button" data-locate-clause="${escapeAttr(clause.id)}" aria-label="Locate ${escapeAttr(clause.label)} in the document" title="Scroll to this clause">Locate</button>
<button class="locate" type="button" data-locate-clause="${escapeAttr(clause.id)}" aria-label="Locate ${escapeAttr(clause.label)} in the document" title="Scroll to this clause">Locate</button>
0 commit comments