Commit graph

59 commits

Author SHA1 Message Date
Paul Holden
7d7259f1b6 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:45:49 +00:00
Jun Pataleta
03d6acbb57 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 14:22:15 +08:00
Shamim Rezaie
11987c1554 MDL-69301 theme_boost: Remove the special handling of Escape key 2020-12-10 15:02:33 +08:00
Shamim Rezaie
1320da3240 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:21:53 +11:00
Shamim Rezaie
c4430d6a66 MDL-69301 core: Enhanced WAI-ARIA support for tab elements 2020-12-03 04:21:53 +11:00
Shamim Rezaie
bede777bed MDL-69301 theme_boost: convert aria.js to es6 module 2020-12-03 04:21:53 +11:00
Marina Glancy
4cfc74d176 MDL-69608 core_form: frozen forms do not have form tag 2020-09-02 23:48:39 +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
Andrew Nicols
721c29ff2d MDL-68833 theme_boost: Add ./pending event checks back 2020-06-03 09:17:37 +08:00
Bas Brands
6a4ce7b0a3 MDL-67386 theme_boost: upgrade bootstrap to version 4.5.0 2020-05-25 15:48:17 +02:00
Andrew Nicols
f879cc518e MDL-66109 js: Build changes for NodeJS upgrade
This change includes a build to fix all minified file changes in Moodle
as a result of upgrades to our build process.
2020-05-11 10:55:54 +08:00
Bas Brands
8ad4255fbe MDL-67863 theme_boost: change keyboard tab order
Move navdrawer up in the dom for a more logical tab order
Hide navdrawer links for tab / screenreader when navdrawer is closed
2020-02-27 17:11:03 +01:00
Tim Hunt
ae5d5f2085 MDL-67876 forms: not all field types need validation JS 2020-02-12 10:06:58 +00:00
Tim Hunt
a5b56c4da5 MDL-67876 forms: scroll to any invalid element if form cannot submit 2020-02-12 09:32:21 +00:00
Ferran Recio
1b5630a01f MDL-66463 theme_boost: go to top link 2020-01-31 12:37:10 +01:00
Kiet.Chan
ed561c801e MDL-67583 themes: Popover placement should react to scroll event 2020-01-13 17:30:43 +07:00
Kiet.Chan
aa8a719049 MDL-67417 theme_boost: Tooltip icon stop working after closing using ESC 2019-12-11 15:01:35 +07:00
Marina Glancy
4d2b8ece29 MDL-67342 theme_boost: Do not hardcode tooltip container 2019-11-24 13:42:48 +01:00
sam marshall
81305c3bbe MDL-67149 Accessibility: Help popups fail WCAG 1.4.13 (Dismissable)
It must be possible to dismiss the help popups (popovers) with the
Escape key, without changing focus.
2019-11-06 16:24:30 +00:00
Andrew Nicols
d1529dc66d MDL-66247 accessibility: Correct notification alert role support 2019-10-31 07:29:58 +08:00
Ryan Wyllie
060da692b6 MDL-64821 theme_boost: enable bootstrap tooltips 2019-09-25 10:42:19 +08:00
Andrew Nicols
5034f0a12b MDL-66550 theme: Wrap JS calls in pendingJS 2019-09-12 20:58:10 +08:00
Bas Brands
fbd99bbb00 MDL-59639 theme_boost: remember last visited tab 2019-08-06 08:54:23 +02:00
Adrian Greeve
dcc3f54e24 Merge branch 'MDL-64887-master-3' of git://github.com/bmbrands/moodle 2019-07-29 10:16:01 +08:00
Bas Brands
9f08292f4f MDL-64887 theme_boost: prevent drop downs from flipping up 2019-07-25 15:24:03 +02:00
Bas Brands
10425e7347 MDL-64887 theme_boost: update bootstrap to 4.3.1 2019-07-22 08:57:04 +02:00
Ryan Wyllie
195ea4480b MDL-62497 javascript: build AMD modules with new transpiler 2019-07-19 14:12:49 +08:00
Andrew Nicols
d27ac4622e MDL-65447 theme: Apply pendingJS checks to BS transitions 2019-05-02 13:31:41 +02:00
Ryan Wyllie
2719668068 MDL-64376 theme_boost: fire event on nav drawer toggle 2019-02-27 10:50:33 +08:00
Andrew Nicols
eb514bb3e5 MDL-63714 javascript: Add new core/pending module 2018-10-24 12:49:09 +08:00
Andrew Nicols
f0bfedf348 MDL-63714 theme_boost: Fix aria focus behat issues 2018-10-24 12:45:13 +08:00
Damyon Wiese
addb26acbb MDL-61388 boost: accessibility
Dynamically show and focus on an alert that was written on page load. This ensures JAWS will read it
as soon as the page is ready, otherwise JAWS would choose to ignore it as per

https://www.w3.org/TR/wai-aria-practices/#alert.
2018-10-22 10:53:31 +08:00
Damyon Wiese
191a1c7c23 MDL-62139 output: Accessible action menus
Add label on the "gear" menu and default keyboard and focus controls.
2018-10-22 10:35:21 +08:00
Kathrin Osswald
c449fbcf72 MDL-62283 theme Boost: No nav drawer pref on small screens 2018-06-15 13:14:28 +02:00
Kathrin Osswald
07b203db88 MDL-61411 theme Boost: Close navigation on all items (on small screens) 2018-04-26 13:17:12 +02:00
Bas Brands
3ec69c2ece MDL-56511 theme_boost: Update to Bootstrap 4 stable
Behat fixes by David Monllao <davidm@moodle.com>
    - Blocks
    - Modals
    - Messaging styling
    - Breadcrumb
    - Pagination
    - Course & categories management
2018-04-18 09:31:53 +08:00
Ryan Wyllie
77f591831c MDL-57557 theme_boost: tweak js popover settings
Added the focus trigger to non hover popovers so that they close when
they lose focus.

Also added a 500ms delay to hiding the hover triggered popover to give
time for clicking on the contents.
2017-03-10 18:04:47 +00:00
Dan Poltawski
facf039a00 MDL-57557 boost: allow any type of popover 2017-02-17 14:05:29 +00:00
Dan Poltawski
ce7149b10c MDL-57197 js: fix AMD module warnings
In 3.2 we are free of AMD lint warnings, unfortunately we can't expose
them through grunt yet due to
"File ignored because of a matching ignore pattern. Use "--no-ignore" to
override"

ps. this isn't related to MDL-57197 at all, i'm just a Rebel
2016-11-30 13:50:38 +00:00
Dan Poltawski
2a55269ce8 Merge branch 'MDL-56584-master' of git://github.com/damyon/moodle 2016-11-23 15:44:29 +00:00
Dan Poltawski
fd111ccabf MDL-57061 boost: build js 2016-11-23 10:23:02 +00:00
Dan Poltawski
95b25310ce Merge branch 'MDL-56795-master' of git://github.com/damyon/moodle 2016-11-22 21:01:59 +00:00
Damyon Wiese
8cdff4beda MDL-56584 boost: Focus on drawer when it is opened 2016-11-22 14:05:43 +08:00
Damyon Wiese
52a51514f6 MDL-56683 theme_boost: Popovers on dynamic content 2016-11-22 10:28:25 +08:00
Damyon Wiese
ef25d51f5b MDL-56795 boost: Close drawer after navigating on mobile 2016-11-21 17:26:45 +08:00
David Monllao
70d2c9fcf8 Merge branch 'MDL-56784-master' of git://github.com/cameron1729/moodle 2016-11-16 13:49:51 +08:00
Cameron Ball
8712a50ec2
MDL-56784 theme_boost: Fix escaped markup in filemanager_fileselect
The markup in the filemanager_fileselect template was being escaped,
causing a help icon not to display.

Additionally, the popover for the help icon was not display since
"loader.js" was not properly delegating the popover calls.
2016-11-16 13:10:51 +08:00