multiselected tasks - contexts checkboxes - add mixed state
For multiselected tasks, in its the displayed contexts list, for each checkbox of the contexts, it could display a mixed state (instead of just checked or unchecked)
. for cases where some selected tasks have different contexts assigned
. in order to preserve the mixed status of the selected tasks when I only want to remove or add a context (to all) but without affecting the tasks specific/distinct contexts
. example:
- selected tasks: {task1:[@context1,@context2]}, {task2:[@context1,@context3]}
- display: [(checked) @context1, (mixed state) @context2, (mixed state) @context2, (unchecked) all the others]
- if clicking on the checkbox of:
- @context1:
1st click - it would mark as unchecked for all
2nd click - it would mark as checked for all
(without affecting the others selected tasks states)
- @context2:
1st click - it would mark as checked for all selected tasks
2nd click - it would mark as unchecked for all selected tasks
3rd click - it would revert to the mixed state (restoring the initial selection of this specific context for all selected tasks)
(while there is no change in the selected tasks)
. something like the example at https://www.w3.org/TR/2017/WD-wai-aria-practices-1.1-20170628/examples/checkbox/checkbox-2/checkbox-2.html
By the way, currently (at least in the windows desktop version (v5.1.0 Professional Edition)), when I tested with the above example,
it would only display the checkboxes as "checked" for the [@context1,@context3] (not showing the @context2)
and if i unchecked the @context1, and presses "ok", it would mark as unchecked for all selected tasks (as intended),
but it would also mark @context3 as checked for all (when I haven't even clicked it),
and it would remove the @context2 for all (when I wanted to preserve its state (on the task1)).