Commit Graph

95 Commits

Author SHA1 Message Date
Mihail Geshoski fce11bf6aa MDL-75957 core: Prevent repositioning dropdowns along the y-axis
Disables filipping the dropdowns up or dynamically repositioning
them along the y-axis to prevent them getting hidden behind the
navbar or them covering the trigger element.
2022-10-25 00:26:39 +08:00
Ferran Recio 3d483ac2ef MDL-75401 core: sticky footer component 2022-10-19 13:06:54 +02:00
Paul Holden 4398a3d920 MDL-75827 theme_boost: append table elements to popover whitelist.
This allows for their use within popover tooltips, such as those
used for showing help icon dialogues.
2022-09-26 16:00:17 +01:00
Víctor Déniz 63f31ccc7b Merge branch 'MDL-75625-master' of https://github.com/ferranrecio/moodle 2022-09-14 20:00:06 +01:00
Shamim Rezaie 2702885257 MDL-75155 output: A single-select combobox widget output component 2022-09-06 13:38:28 +10:00
Ferran Recio 188d304a4b MDL-75625 core_courseformat: fix MDL-71979 comments 2022-09-01 12:41:55 +02:00
Peter Dias d693e93969 MDL-74297 core: Scroll and sticky heading/footer updates 2022-04-07 08:34:37 +08:00
Shamim Rezaie 8248badec7 MDL-74117 theme_boost: Remove handling of Space and Enter in dropdowns
The custom handling of Space and Enter for dropdowns that was added to
aria.js were not needed in the latests Bootstrap versions. So removed
them. Vanilla Bootstrap emulates click when Space or Enter keys are
pressed on a tab.
2022-03-28 18:19:47 +11:00
Shamim Rezaie ad19422833 MDL-74117 theme_boost: Only focus the trigger if nothing else is focused 2022-03-28 18:19:47 +11:00
Sara Arjona dd7d03a50e Merge branch 'MDL-74073-master-2' of https://github.com/junpataleta/moodle 2022-03-16 12:17:08 +01:00
Jun Pataleta ed55f45754 MDL-74073 theme_boost: Enhanced kb handling for BS Collapse components
* Make sure that Bootstrap Collapse components can also be toggled by
the Space key.

Reference:
https://www.w3.org/TR/wai-aria-practices-1.1/#disclosure
2022-03-16 14:09:15 +08:00
Shamim Rezaie 1058a2fbd9 MDL-72481 theme_boost: Do not update tabindex of the "more" tab 2022-03-15 14:36:14 +11:00
Shamim Rezaie 4489132505 MDL-72481 core: only move through visible tabs 2022-03-15 12:48:22 +11:00
Sujith Haridasan 044439fc84 MDL-72481 theme_boost: Find the tab if it is inside the more dropdown
keep the selector limited to tablists to prevent infinite redirects

Co-authored-by: Shamim Rezaie <shamim@moodle.com>
2022-03-15 12:48:22 +11:00
Jun Pataleta 122b0fc91e MDL-70792 aria: Dropdown menu keyboard interaction fixes
* Move the focus to the last menu item when the menu is displayed by
pressing the Up arrow key.
* When the menu is open and Tab/Shift-Tab is pressed, focus on the
next/previous focusable element on the DOM instead of focusing back on
the menu trigger.
* Combine event handling for the dropdown menu trigger.
2022-02-24 18:21:12 +08:00
Mathew May 0360bc2ab3 MDL-70792 aria: Only set focus on items when triggered by keypress 2022-02-23 12:01:13 +08:00
Bas Brands f06091bec5 MDL-73609 theme_boost: footer popup accessible behaviour 2022-02-14 09:57:08 +01:00
Jun Pataleta a336dfc271 Merge branch 'MDL-73618-master' of https://github.com/ferranrecio/moodle 2022-01-24 18:59:15 +08:00
Ferran Recio 664ccecd0a MDL-73618 theme_boost: fix drawers tooltips 2022-01-19 18:03:17 +01:00
Ferran Recio 72321cff3f MDL-73340 theme_boost: course index opened by default 2022-01-14 18:49:06 +01:00
Ferran Recio ea01266118 MDL-73336 theme_boost: fix drawer tooltips 2022-01-11 16:15:57 +01:00
Huong Nguyen 1ac6a82e1f MDL-72809 Themes: Fix the missing 'Reset user tour on this page' link 2022-01-07 17:03:32 +07:00
Ferran Recio bcb35d9dbe MDL-72456 theme_boost: detect drawers scroll 2021-11-25 11:30:32 +01:00
Ferran Recio 844681f54f MDL-72456 theme_boost: add tooltips to drawers 2021-11-25 11:28:06 +01:00
Bas Brands 4fb5fb052f MDL-72250 theme_boost: add mobile nav drawer 2021-11-16 08:58:01 +01:00
Andrew Nicols 88d5175d41 MDL-72263 theme: Adjust parameters for focusing close button 2021-10-28 08:51:16 +08:00
Ferran Recio 59128bb411 MDL-72263 courseformat: adding core/tree to course index 2021-10-27 10:54:56 +02:00
Andrew Nicols 349312143d MDL-72013 js: Fix jsdocs to meet stricter eslint 2021-10-21 13:28:00 +08:00
Andrew Nicols 9cba40c410 Merge branch 'MDL-71965-master' of git://github.com/bmbrands/moodle 2021-10-11 08:06:43 +08:00
Eloy Lafuente (stronk7) b662f299f4 Merge branch 'MDL-72454-master' of git://github.com/HuongNV13/moodle 2021-10-07 22:31:46 +02:00
Bas Brands 57581a1980 MDL-72278 theme_boost: open drawer with fake blocks on first visit 2021-10-07 16:14:37 +02:00
Huong Nguyen f081ebeb4b MDL-72454 Themes: Removal of back to top link 2021-10-07 14:32:27 +07:00
Bas Brands d1b9f7d1f1 MDL-71965 theme_boost: move footer content in popover 2021-10-06 11:32:08 +02:00
Bas Brands 2092500f8a MDL-72361 theme_boost: page scroll issue on drawer close 2021-08-19 09:27:23 +02:00
Bas Brands 4fa713b0d4 MDL-71456 theme_boost: drawers for blocks and the course index 2021-07-14 11:49:57 +02:00
Andrew Nicols 4f422785c6 MDL-71113 javascript: Improve basic JS Documentation 2021-06-18 09:38:05 +08:00
Andrew Nicols 92179b7057 MDL-71113 js: Fix all jsdoc warnings 2021-06-18 09:38:05 +08:00
Andrew Nicols acd9d9823b MDL-70990 core_form: Replace FORM_SUBMIT_AJAX event
The legacy M.core.event.FORM_SUBMIT_AJAX ecent has been replaced with a
new core_form/events::formSubmittedByJavascript native DOM event.

The new event can be listened to at any point in the DOM using the
following syntax:

```
import {eventTypes} from 'core_form/events';

document.addEventListener(eventTypes.formSubmittedByJavascript, handler);
```

A backward-compatabibility layer is included to ensure that any
legacy YUI event triggered on a form is still respected and the new
native event is also fired.

A similar handler is also included to ensure that any legacy YUI event
listener is still called with the same arguments.

These legacy bridges will be removed after Moodle 4.3.
2021-05-26 10:46:49 +08:00
Ilya Tregubov 11956f9fff MDL-70311 theme_boost: upgrade bootstrap to version 4.6.0 2021-03-17 12:26:45 +02:00
Paul Holden ccc2f64244 MDL-70789 theme_boost: fix double click on drawer hiding content.
If the drawer toggle button was clicked in quick succession to close
and then re-open, then the delayed Aria.hide method would be called
which hid the drawer content when it finished opening.
2021-02-11 21:39:06 +00:00
Jun Pataleta da237792ec MDL-70288 theme_boost: Manage aria-describedby on form validation
* The aria-describedby attribute can be a list of element IDs that
describe the element. On form validation, the ID of the error message
container is added to this attribute which may already be containing
another ID. So we need to properly add/remove the error message ID
so that we don't delete any existing ID(s) in the aria-describedby
attribute during form validation.
2021-02-02 13:11:58 +08:00
Shamim Rezaie 1ca295c34f MDL-69301 theme_boost: Remove the special handling of Escape key 2020-12-10 15:05:11 +08:00
Shamim Rezaie 4dfc4adfa1 MDL-69301 theme_boost: Use event.key in aria.js
Both event.which and event.keyCode are deprecated. So
We switched to using event.key. We can only do so now
because IE is no longer supported.
2020-12-03 04:18:01 +11:00
Shamim Rezaie c8ea0c12d7 MDL-69301 core: Enhanced WAI-ARIA support for tab elements 2020-12-02 22:57:42 +11:00
Shamim Rezaie baf68eae5e MDL-69301 theme_boost: convert aria.js to es6 module 2020-12-02 22:57:18 +11:00
Marina Glancy 88a3e647ac MDL-69608 core_form: frozen forms do not have form tag 2020-09-02 12:19:17 +02:00
Andrew Nicols 7cc18dc2ad MDL-68390 js: Update to use Aria mod 2020-07-15 14:40:49 +08:00
Andrew Nicols 94376c6910 MDL-69086 theme_boost: Improve pendingJs checks for bootstrap
Where an element, like an `alert`, is closed it is removed from the DOM
before the event fires (this is a correct behaviour).

This means that the final event confirming that the action happened
(i.e. close => closed) fires, but does not bubble up the DOM to the
document.body.

This change moves the end event listener to only be added after a start
event has been fired, and to attach directly to the HTMLElement where it
will be fired. This means that the Event handler will still be called,
even though it has been removed from the DOM, because it does not need
to bubble up to the body.
2020-06-19 08:17:45 +08:00
Bas Brands 355af8f84d MDL-68833 theme_boost: prevent having to call init on the loader
This was added in a previous master-only issue and breaks backwards compatability with child themes.

There is no need to have the init function here.
2020-06-03 09:21:48 +08:00
Andrew Nicols 23c60c18ef MDL-68833 theme_boost: Stop overriding popover triggers
The trigger specified in JS overrides any `data-trigger` in the DOM,
which changed the behaviour of Popovers.
2020-06-03 09:21:07 +08:00