537 Commits

Author SHA1 Message Date
Jun Pataleta
306a778855 MDL-69588 core: Revert user menu dropdown toggle to a link 2021-08-25 17:26:39 +08:00
Mathew May
c1130de5ff MDL-69588 accessibility: Address further review points 2021-08-24 11:56:02 +08:00
abgreeve
56c34d71ef MDL-69588 theme_boost: Use partial templates in boost.
This moves away from using escaped html injected into the template
and uses partial templates instead.
2021-08-23 17:47:24 +08:00
Mathew May
1f6bcd7eae MDL-69588 accessibility: Address review points 2021-08-23 17:47:24 +08:00
Bas Brands
eed2498215 MDL-72032 core: Fix aria roles moremenu
- Part of: MDL-69588
2021-08-23 17:47:24 +08:00
Peter Dias
dfefc86393 MDL-72032 core: Add roles to items
- Part of: MDL-69588
2021-08-23 17:47:22 +08:00
Bas Brands
da33265d73 MDL-72032 core_behat: secondary navigation behat fixes
- Part of: MDL-69588
2021-08-23 17:47:02 +08:00
abgreeve
42e191cc4d MDL-72005 navigation: Change context header to switch breadcrumbs
- Part of: MDL-69588
This changes the context header to switch the breadcrumbs to the
top in boost. It also changes the context header in the modules
to have the activity name instead of the course name, and adds
an icon for the activity.
2021-08-23 17:46:40 +08:00
Mihail Geshoski
7318b68b77 MDL-71683 navigation: Enable submenus within the user menu
- Part of: MDL-69588
Adds support for creating collapsible submenus within the user
menu dropdown.
2021-08-23 17:46:40 +08:00
Mihail Geshoski
1c017ad8fb MDL-71680 navigation: Update templates/js to force nodes into more menu
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Bas Brands
17e9d4a51a MDL-70202 theme_boost: push secondary navigation in admin search page
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Bas Brands
00239bccad MDL-70202 theme_boost: remove accessibility changes for moremenu tabs
- Part of: MDL-69588
- the more menu will be responsive and does not need changed tab styles on small devices
2021-08-23 17:46:39 +08:00
Bas Brands
527562d12f MDL-70202 theme_boost: frontend for secondary navigation
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Bas Brands
da67b468fa MDL-70208 theme_boost: frontend for primary navigation
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Peter Dias
0c76a848ea MDL-71148 core_navigation: Templates to generate user menu
- Part of: MDL-69588
2021-08-23 17:46:36 +08:00
Bas Brands
99a4eee699 MDL-71456 core: fix behats with new drawers
The new drawers structure shows that some elements
are dependant from the page structure and broke some
behats. This commit fixes those components and tests.
2021-07-14 11:49:57 +02:00
Bas Brands
c36972b2c0 MDL-71293 theme_boost: improve navbar for new navigation 2021-06-23 12:03:10 +02:00
Andrew Nicols
31d6adef4d MDL-70990 core_block: Replace legacy BLOCK_CONTENT_UPDATED event
The legacy M.core.event.BLOCK_CONTENT_UPDATED event has been replaced with a
new core_block/events::blockContentUpdated native DOM event.

The new event can be triggered using the `notifyBlockContentUpdated`
event, and by providing the HTMLElement that was updated, for example:

```
import {notifyBlockContentUpdated} from 'core_block/events';

const someHandler = e => {
    // ...
    const updatedBlock = e.target.closest('.block');
    notifyBlockContentUpdated(updatedBlock);
};
```

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

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

const handler = e => {
    // The block that was updated.
    e.target;

    // The id of the updated block.
    e.detail.instanceId;
};

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

A backward-compatabibility layer is included to ensure that any legacy
YUI event listener is still called with the same arguments.

This legacy bridges will be removed after Moodle 4.3.
2021-05-26 10:47:17 +08:00
Luca Bösch
8c411f1234 MDL-71373 core_table: localize "previous"/"next" in pagination. 2021-05-14 14:18:52 +02:00
Víctor Déniz
47d63ce9ef Merge branch 'MDL-71303' of https://github.com/StudiUM/moodle 2021-05-06 23:32:05 +01:00
Mikel Martín
5fade7fcc6 MDL-71089 core: Add different Toast notification styling 'types' 2021-04-13 16:28:35 +02:00
Issam Taboubi
0aa65aefe7 MDL-71303 core: HTML not escaped in block skip link 2021-04-09 17:10:19 -04:00
Simey Lameze
f339182af0 MDL-70169 login: fix accessibility issues 2021-02-12 12:12:02 +08:00
Mihail Geshoski
db758db533 MDL-70316 core: Update the emoji categories in the emoji picker 2021-01-27 13:37:03 +08:00
Michael Hawkins
dc9de7b0d4 MDL-70571 lib: Added additional escaping to search_input template 2021-01-11 16:20:16 +01:00
Eloy Lafuente (stronk7)
c59c8e79ec Merge branch 'MDL-70476' of https://github.com/timhunt/moodle 2021-01-07 00:27:48 +01:00
Sébastien Mehr
95c5173789 MDL-70482 template: add missing closing bracket 2020-12-24 13:54:00 +01:00
Eloy Lafuente (stronk7)
2d37d7f94d Merge branch 'MDL-70279' of git://github.com/paulholden/moodle 2020-12-23 00:46:42 +01:00
Sara Arjona
8099deda48 Merge branch 'MDL-69107-master-2' of git://github.com/andrewnicols/moodle 2020-12-18 15:22:09 +01:00
Sara Arjona
2aa55eb4a5 Merge branch 'MDL-70322-master' of git://github.com/roland04/moodle 2020-12-16 12:04:03 +01:00
Tim Hunt
fbc010aca1 MDL-70476 permission overrides: role names double-escaped in tool tip 2020-12-15 14:51:32 +00:00
Andrew Nicols
f07d3b71d2 MDL-69107 form_autocomplete: Rewrite item selection
The form_autocomplete is essentially a custom element. Unfortunately the
`setValue()` function in Mink has undesired actions so it is necessary
to write our own handling for it.

The standard Mink `setValue()` function focuses the element, sets a
value, and then blurs the element. In the case of the autocomplete this
can cause the autocomplete suggestions list to be closed in some
situations. Instead of using the setValue we click, and type the value,
but do not immediately blur.
2020-12-15 09:08:05 +08:00
Tom Dickman
c00fc9707f MDL-67623 block overview: fix pagination regression
Fixed a regression caused by MDL-64194 resulting in Dashboard - Course
overview pagination not working from second page of courses onwards.

Course overview block should now do the following:
- Display no pagination controls when user has no courses
- Display no pagination controls when less than 12 courses to display
- Only display pagination controls up to the number of courses user is
enrolled in
- Work correctly when on a page greater than the second page.
2020-12-14 13:15:26 +11:00
Mikel Martín
c31561e4a2 MDL-70322 core_search: consistent search icon 2020-12-11 15:42:47 +01:00
Andrew Nicols
cd3809653c Merge branch 'MDL-70320' of https://github.com/timhunt/moodle 2020-12-09 11:56:05 +08:00
Adrian Greeve
b4e6552776 Merge branch 'MDL-69301-master' of git://github.com/rezaies/moodle 2020-12-07 10:05:55 +08:00
Paul Holden
1cef02d293 MDL-70279 tool_templatelibrary: preserve component search field value. 2020-12-04 14:55:38 +00:00
Shamim Rezaie
c8ea0c12d7 MDL-69301 core: Enhanced WAI-ARIA support for tab elements 2020-12-02 22:57:42 +11:00
Mihail Geshoski
16b72504b3 MDL-57614 core: Fetch blocks through a webservice in add block modal 2020-12-02 13:43:15 +08:00
Tim Hunt
374d3e7700 MDL-70320 permission overrides: role names were double-escaped 2020-11-25 21:19:57 +00:00
Shamim Rezaie
cb0bf0ffe0 MDL-68167 lib: Clear single-select autocomplete elements with keyboard
Following MDL-57680, it should be possible to clear the selected option
using keyboard as well.
2020-10-30 16:01:38 +11:00
Shamim Rezaie
b6d733dd4e MDL-68167 lib: Fix label for autocomplete selection/suggestion box
The content of the autocomplete selection div is purged by javascript
so we have to move its label outside of it. aria-labeledby is the way
to go.

Each time the suggestion box is expanded, autocomplete js renders the
autocomplete suggestions template. So the label cannot be outside the
suggestions ul.
2020-10-30 16:01:38 +11:00
Shamim Rezaie
b643c88682 MDL-68167 lib: Autocomplete selection to use listbox aria role
The aria-selected state cannot be used for the listitem role. The
autocomplete widget highly uses the aria-selected state internally.
2020-10-30 14:43:00 +11:00
Bas Brands
451bd40752 MDL-69390 theme_boost: dropdown menu accessibility
- display a dot before the active element
- use the active colour for the hover colour
2020-10-28 14:01:17 +01:00
Adrian Greeve
5dc282a0d3 Merge branch 'MDL-68766-master' of https://github.com/ised-isde-canada/moodle 2020-10-21 12:55:11 +08:00
Andrew Nicols
deb400c6bf MDL-69549 core: Add context export API 2020-10-15 13:45:58 +08:00
Michael Milette
33c9499b28 MDL-68766 auth: Login form: 'Log in using...' should be h3, not h6 2020-10-12 10:40:22 -04:00
Bas Brands
eb9935c909 MDL-69454 core_search: consistent backup search 2020-09-21 13:41:05 +02:00
Bas Brands
661d6d7dd3 MDL-69454 core_search: consistent template library search 2020-09-21 11:54:52 +02:00
Bas Brands
4c71e1d0d0 MDL-69454 core_search: consistent mod searches 2020-09-21 11:54:51 +02:00