Ferran Recio
bf642fb6fc
MDL-73556 core_courseformat: fix course index click toggle
...
When the user clicks on a course index chevron the section is toggled.
However, when clicks on the section name the section is expanded but
never collapsed.
2022-03-18 14:39:32 +01:00
Jun Pataleta
825b276b1a
Merge branch 'MDL-72668-master' of git://github.com/rezaies/moodle
2021-11-04 12:03:42 +08:00
Shamim Rezaie
ae2b100f55
MDL-72668 block_private_files: Switched from YUI to core/tree AMD
2021-11-04 13:48:06 +11:00
Ferran Recio
461226ed27
MDL-72569 core_courseformat: aria-tree to move tool
2021-11-02 16:00:12 +01:00
Ferran Recio
59128bb411
MDL-72263 courseformat: adding core/tree to course index
2021-10-27 10:54:56 +02:00
Andrew Nicols
92179b7057
MDL-71113 js: Fix all jsdoc warnings
2021-06-18 09:38:05 +08:00
Dongsheng Cai
e3690a392d
MDL-70846 accessibility: update tree attributes to pass a11y check
...
- Move aria-* atrributes from <p> to <li>
- Move "role" attribute from <p> to <li>
- Update behat tests
Based on reference implementation from:
- https://www.w3.org/TR/wai-aria-practices-1.1/examples/treeview/treeview-2/treeview-2a.html
- https://www.w3.org/WAI/GL/wiki/Using_ARIA_trees
2021-06-03 13:52:04 +10:00
Paul Holden
be48efc9b7
MDL-70580 core: retrieve closest tree node in click handler.
2021-01-12 20:11:25 +00:00
Andrew Nicols
d0bc893972
MDL-70580 core: Tree nodes should check if they were clicked directly
2021-01-11 23:42:03 +00:00
Michael Hawkins
f01c2fa4e7
MDL-70033 core: Update tree.js event handlers to replace stopPropagation
...
Also added support to allow links to override action keys (enter/space)
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk >
2020-11-03 11:53:57 +08:00
Michael Hawkins
2660d542c8
MDL-69559 core: Removed stopPropagation from tree click handling
...
It was preventing JS click event handlers being reached on some
elements, such as course admin items in Classic
(eg download course content for teachers).
2020-10-27 07:52:43 +08:00
Andrew Nicols
7cc18dc2ad
MDL-68390 js: Update to use Aria mod
2020-07-15 14:40:49 +08:00
Adrian Greeve
ff40c7d374
MDL-62491 navigation: Update to tree.js to allow callbacks.
2018-10-08 09:00:08 +08:00
Dan Poltawski
037de71996
MDL-54944 eslint: Add rules from Policy decision
...
Also bump eslint to v2.13.1 and make the version explicit in
package.json
2016-07-07 12:10:49 +01:00
Dan Poltawski
c96f55e6f9
MDL-54939 amd: fix lint issues
...
Mostly correcting jsdoc, some other line wrapping rules and empty
functions.
2016-06-17 09:03:18 +01:00
Cameron Ball
4838a19641
MDL-53311 navigation: Move treeitem role on to p
...
Previously the li elements had the treeitem role, which was not invalid,
but it meant that when a menu item expanded, the entire li was clickable
and clicking anywhere that was not another menu item would cause the
(sub)tree to collapse. This patch moves the treeitem role on to the p
element (which contains the node name) and uses aria-owns to expand
Mad shoutouts to Ryan Wyllie for his assistance 🙌
🌄 ᚳᚱᛒ
2016-05-13 16:01:44 +08:00
Ryan Wyllie
fd83879728
MDL-53989 cbe: CMD + click selection for competency picker
2016-05-06 04:40:02 +00:00
John Okely
a057ba5924
MDL-35590 navigation: Remove link from admin node if you have javascript
...
Also:
* In behat, ensure nav node exists before checking attribute (Credit to
Rajesh Taneja)
* Remove some unused JS constants
* Fix debugging notice for users without settings block
2016-01-29 11:28:08 +08:00
Ryan Wyllie
5697de1832
MDL-35590 block_navigation: fix keyboard nav
...
Fixed up the left/right keyboard navigation to match
the aria specification. Also stopped the root node from
being collapsible.
2016-01-29 10:15:26 +08:00
Simey Lameze
6759dc35fe
MDL-35590 block_navigation: fix remaining issues
2016-01-22 18:48:04 +08:00
John Okely
f889544657
MDL-35590 block_navigation: Add aria roles to navigation block tree
2016-01-21 10:18:22 +08:00