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
{{ message }}
Repository navigation
Commit b13da50
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Agentic Button: expose visible labels and toggle state (#4403)
* fix(agentic): expose native Button Toggle semantics
Declare resolved Toggle actions for caller-owned selection, retain native action forwarding, and add checked-state ownership and stable-layout regressions without physical input.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4b66f3ef-85ac-4405-bd35-dcc167a077b1
* fix(button): project content names and demonstrate native toggle ownership
Preserve explicit naming and label references. Add runtime and native naming regressions, and allow the caller-owned selection example to use real native action transport without physical input.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4b66f3ef-85ac-4405-bd35-dcc167a077b1
* test(button): handle the reset control's native action in its owner
Keep native accessibility actions distinct from onPress while qualifying caller-owned reset without physical input.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4b66f3ef-85ac-4405-bd35-dcc167a077b1
* test(button): use the native accessibility tap for ordinary reset
Keep ordinary accessibility taps and declared Toggle actions distinct from pointer/keyboard onPress; exercise each real transport through its caller.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4b66f3ef-85ac-4405-bd35-dcc167a077b1
* test(button): qualify native selection by desktop contract
Keep portable button role and enabled-state assertions shared, isolate Windows checked projection, and require physical macOS caller activation without changing product behavior.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4b66f3ef-85ac-4405-bd35-dcc167a077b1
* chore(button): record contiguous qualification trailers
Keep the validated source unchanged and preserve append-only history.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4b66f3ef-85ac-4405-bd35-dcc167a077b1
---------
Co-authored-by: Srividya Ramaswamy <sriramas@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4b66f3ef-85ac-4405-bd35-dcc167a077b1
Expose Button's plain content as its native name and declare Toggle when selected is supplied, preserving explicit naming, caller actions and externally owned checked state.
@@ -561,7 +588,7 @@ export const ExternallyDrivenSelection: Story = {
561
588
docs: {
562
589
description: {
563
590
story:
564
-
'A toggle button never changes its own state. The caller owns selected and updates it from onPress, which is why an external action such as Reset can change it just as easily.',
591
+
'A toggle button never changes its own state. The caller handles pointer onPress, Windows native Toggle activation, and the Reset accessibility tap independently. macOS uses physical pointer input because its custom Toggle is not an AXPress route. Pointer/focus policy is tested separately.',
565
592
},
566
593
},
567
594
},
@@ -587,6 +614,240 @@ export const Disabled: Story = {
'Toggle state remains externally owned. Native Toggle declarations come from Button, not this fixture. Action counters observe the original native event separately from onPress.',
'The caller handles the native Toggle action and pointer onPress independently. This input-independent case checks native checked state and same-control bounds across both caller-owned transitions.',
0 commit comments