Commit Graph

55 Commits

Author SHA1 Message Date
Sean Lip
2a172c761c Standardize indentation. 2016-12-05 17:54:12 -08:00
Sean Lip
51f42ef5a3 Remove some functions from utilsService and consolidate code in workspace-tree.component.js. 2016-12-05 17:52:45 -08:00
Sean Lip
10efda6d9c Refactor and simplify marked spot logic. 2016-11-30 16:45:06 -08:00
Sean Lip
4c30b91bc6 Remove clipboard functionality. 2016-11-30 15:31:19 -08:00
Sean Lip
65bad28f61 Minor refactoring. Remove unused dependencies. 2016-11-29 18:50:31 -08:00
Sean Lip
a027ec8573 Move away from using a common modal service, since the block options and the toolbox modals are going to end up behaving fairly differently. 2016-11-16 16:47:26 -08:00
Sean Lip
b1109f47f0 Add correct focus behavior for the modal. Update boundary sounds. 2016-11-14 18:31:36 -08:00
Sean Lip
bae7426ec6 Remove copy/paste buttons. 2016-11-09 14:46:33 -08:00
Sean Lip
bd9f5743d3 Wording changes. Reinstate copy/paste blocks temporarily. 2016-10-10 17:31:28 -07:00
Sean Lip
8bd64948dd Introduce a FieldSegment component for handling blocks with multiple fields. 2016-10-05 12:45:50 -07:00
Sean Lip
09f25f618f Add information about the surrounding parent to the block description, for context. 2016-09-23 18:33:59 -07:00
Sean Lip
cd461cd6b6 Tidy up messages, update aria labels, add punctuation. 2016-09-22 17:04:28 -07:00
Sean Lip
0779c959d7 Move 'move to marked spot' button to the top of the block options list. 2016-09-20 17:44:18 -07:00
Sean Lip
270ed961bf Add aria-level and aria-selected attrs to dropdowns. 2016-09-19 19:33:35 -07:00
Sean Lip
284f71c46a Remove clipboard buttons to simplify UI. 2016-09-19 16:04:08 -07:00
Sean Lip
ee403c6a95 Add keyboard shortcuts for cut, copy and paste operations. 2016-09-19 15:45:46 -07:00
Sean Lip
6c05ece593 Minor wording change. 2016-09-08 18:22:02 -07:00
Sean Lip
3cf06078a2 Minor wording edits. Fix issue with Voiceover not detecting changes to block labels. 2016-08-23 16:01:25 -07:00
Sean Lip
6da1f56879 Change below/above to after/before for 'paste' and 'mark spot' buttons. 2016-08-17 16:31:41 -07:00
Sean Lip
d0083f802e Update text for marked spot and 'more options' labels. 2016-08-15 14:05:06 -07:00
Sean Lip
3a1d9cdec1 Prevent the tabbable area from being restricted to the toolbox and workspace. 2016-08-10 18:30:16 -07:00
Sean Lip
93af9c59b3 Add functionality for playing audio files. 2016-08-09 17:29:53 -07:00
Sean Lip
f7b0c1b5e6 Move action menu below the block description. Edit the aria label to improve discoverability of the submenu. 2016-08-04 19:28:36 -07:00
Sean Lip
051d5bc099 Remove superfluous menus from toolbox. Use aria live region instead of alerts, and redo the text based on user feedback. Add a simple tutorial at the top of the demo page. 2016-08-04 19:04:13 -07:00
Sean Lip
caccf3fcf7 Use the correct closure when executing block actions. 2016-08-02 15:57:12 -07:00
Sean Lip
75a842b884 Refactor common functionality. Focus on new blocks immediately after they are created. Fix active descendant for tricky cases where moving a block to a marked spot splits the existing tree. 2016-08-01 19:20:20 -07:00
Sean Lip
2312a2d716 Improve screenreader focus behaviour when copying or moving blocks to a marked field. 2016-08-01 18:00:53 -07:00
Sean Lip
47888b806f Ensure aria-labels for workspace work correctly with Voiceover on Mac. 2016-07-28 18:29:44 -07:00
Sean Lip
f7bdf1168d Fix issue with duplicate ids in workspace tree block field menus. 2016-07-28 17:53:43 -07:00
Sean Lip
408e306ffc Update aria labels. In the process, refactor lists to comply with HTML5 spec to avoid ChromeVox getting confused about how many elements are in a list. 2016-07-28 17:47:43 -07:00
Sean Lip
01a7825107 Refactor getBlockDescription() into a separate method in UtilsService. 2016-07-28 14:44:19 -07:00
Sean Lip
6d14be9d91 Always remove screenreader focus from block before pasting to one of its connections. 2016-07-26 13:56:57 -07:00
Sean Lip
8a9bae6587 Invoke a digest cycle after the DOM changes, so that the next node is correctly focused on after a top-level block deletion. 2016-07-26 13:45:23 -07:00
Sean Lip
0e7e3547b9 Fix screenreader focus behaviour when pasting blocks. 2016-07-22 17:49:11 -07:00
Sean Lip
9e11acda49 Fix ids for field blocks. 2016-07-22 17:38:47 -07:00
Sean Lip
8d6ce713bd Remove unnnecessary aria-selected attributes. 2016-07-22 17:20:37 -07:00
Sean Lip
83759dbbee Declare field buttons declaratively. 2016-07-22 14:55:22 -07:00
Sean Lip
c958cf5eaf When a block is pasted to a tree, set the active descendant of that tree to the newly-pasted block. 2016-07-21 17:28:58 -07:00
Sean Lip
c4abbff496 Implement correct behaviour for copying a block from the toolbox to a marked spot. 2016-07-21 16:48:08 -07:00
Sean Lip
606a5e1d08 Clean up active desc properly when a tree is removed from the workspace. Handle tree and screenreader focus correctly for 'move to marked spot' operations. 2016-07-21 16:30:38 -07:00
Sean Lip
21f15aca48 Show alert when block is deleted. Prevent errors from happening when a block is deleted from a field. 2016-07-21 16:29:52 -07:00
Sean Lip
c24bfda7cf Standardize naming convention for marked-spot methods. 2016-07-19 18:43:27 -07:00
Sean Lip
0de625caf4 Tidy up usage and formatting of aria-level (fixing an off-by-one error in the process). 2016-07-18 16:11:29 -07:00
Sean Lip
cc6252cc00 Set activedescendant correctly on workspace trees. 2016-07-14 15:52:58 -07:00
Sean Lip
f30bcbc0e7 Fix connection compatibility rules. Use the previous connection when 'pasting above' a block that already has a previous block. 2016-07-01 15:55:51 -07:00
Sean Lip
707c2149f1 Refactor workspace-tree: define the action buttons declaratively; simplify initial lifecycle code. 2016-06-30 18:19:31 -07:00
Sean Lip
be664dcdb6 Make screenreader focus behave correctly when cutting, moving or deleting a block. Unmark the marked spot after a block has been moved or copied to it. 2016-06-30 14:52:12 -07:00
Sean Lip
63bb89108b Do not allow a block to be moved to a marked connection that it contains. Fix an error where block ids did not update when a new block is inserted in a list. 2016-06-28 18:28:47 -07:00
Sean Lip
5b63b9c193 Remove justFocusedIntoField_ special case. 2016-06-28 17:13:25 -07:00
Sean Lip
ff90218c07 Clean up keystroke handling in treeService. 2016-06-28 16:41:18 -07:00