-
Notifications
You must be signed in to change notification settings - Fork 6k
Communicate switch status to semantics on Windows #36177
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3421,7 +3421,7 @@ int AXPlatformNodeWin::MSAARole() { | |
| return ROLE_SYSTEM_TITLEBAR; | ||
|
|
||
| case ax::mojom::Role::kToggleButton: | ||
| return ROLE_SYSTEM_PUSHBUTTON; | ||
| return ROLE_SYSTEM_CHECKBUTTON; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is check button basically a check box? Why do we choose this over push button?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is the same role as for a checkbox. In #flutter/fluter/111525 we are currently of the opinion that it is the most appropriate role, as it is for interactable widgets with toggleable state, and the materials design guidelines recommend their use in place of checkboxes on mobile
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks for explanation. SGTM |
||
|
|
||
| case ax::mojom::Role::kTextField: | ||
| case ax::mojom::Role::kSearchBox: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to also test its MSAARole is ROLE_SYSTEM_CHECKBUTTON?