6501 Commits

Author SHA1 Message Date
Andrew Nicols
92179b7057 MDL-71113 js: Fix all jsdoc warnings 2021-06-18 09:38:05 +08:00
Andrew Nicols
73a5098a89 Merge branch 'MDL-70846-master' of https://github.com/dcai/moodle 2021-06-10 08:41:11 +08:00
Dongsheng Cai
4357b7ef16 MDL-70846 accessibility: update color to increase contrast 2021-06-03 13:52:05 +10: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
Shamim Rezaie
2ea485da78 MDL-71668 editor_atto: Accissibility focus styling for Atto buttons
Make all Atto buttons consistent in the way they show the focus outline
2021-05-31 19:20:49 +10:00
Sara Arjona
85d9ea2c09 Merge branch 'MDL-69703' of git://github.com/paulholden/moodle 2021-05-27 12:24:47 +02:00
Paul Holden
4d484a34a7 MDL-69703 theme_boost: ensure multi-select options take all space. 2021-05-27 10:44:10 +01:00
Andrew Nicols
5bc02e7c40 Merge branch 'MDL-69703' of git://github.com/paulholden/moodle 2021-05-27 12:05:44 +08:00
Andrew Nicols
687b3928d8 Merge branch 'MDL-70853-master' of git://github.com/lucaboesch/moodle 2021-05-27 10:58:50 +08:00
Andrew Nicols
0f5ce89003 Merge branch 'MDL-67771-master' of git://github.com/peterRd/moodle 2021-05-27 09:44:26 +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
Paul Holden
241641ab59 MDL-69703 theme_boost: remove right padding for multi-selects.
This removes the whitespace obscuring longer option elements when
selected, particularly on narrow screens.
2021-05-24 15:56:46 +01:00
Luca Bösch
942dc9de42 MDL-70853 theme: align submit buttons in settings forms. 2021-05-20 13:00:28 +02:00
Peter Dias
2d47939366 MDL-67771 theme: Add side-post to incourse views 2021-05-20 15:13:51 +08:00
Thong Bui
d1d7873f3a MDL-71060 Questions: Duplicates 'Current category' text. 2021-05-10 00:22:55 +07:00
Simey Lameze
0102485180 MDL-71454 theme: fix paddings for label resource 2021-05-03 14:35:42 +08:00
Sara Arjona
6319dc8c2c Merge branch 'MDL-71403' of git://github.com/paulholden/moodle 2021-04-27 16:01:55 +02:00
Víctor Déniz
48a42f2289 Merge branch 'MDL-71003' of git://github.com/paulholden/moodle 2021-04-27 00:38:11 +01:00
Paul Holden
ad7092d281 MDL-71403 message: Bootstrap controls for message preferences.
Replicates changes made to notification preferences in e41b3485.
The templates for each are similar enough than one can be used
from the other. Remove redundant styles for previous controls.
2021-04-25 16:43:06 +01:00
Sara Arjona
80b1bb4751 Merge branch 'MDL-57831' of git://github.com/paulholden/moodle 2021-04-22 18:13:04 +02:00
Paul Holden
702b119f57 MDL-57831 theme_boost: accessibility update for message preferences.
The preferences table did not meet accessibility guidelines regarding
colour contrast between hovered rows and the disabled switch
elements.

Ensure white background is used for all table cells, and replace the
highlighted columns used to differentiate processors with borders.
2021-04-21 21:46:29 +01:00
Eloy Lafuente (stronk7)
2d287b8adf MDL-71365 grunt: fix boost ignores order and missing LF @ EOF 2021-04-18 00:10:46 +02:00
Sara Arjona
d3d3b3bdc0 MDL-69331 core_h5p: Add enabled field to libraries
The "enabled" field has been added to the H5P libraries to let
admins decide whether a library should be used or not in the site.
2021-04-15 09:03:56 +02:00
Andrew Nicols
b1975b002c Merge branch 'MDL-70311-master' of git://github.com/ilyatregubov/moodle 2021-04-15 09:19:24 +08:00
Mikel Martín
e7fa11471e MDL-71089 theme_boost: Add styles for different toast types 2021-04-13 16:28:35 +02:00
Jun Pataleta
abc5d76175 MDL-70821 course: Render activity information output component in course
Use the activity information output component to render activity
completion details and activity dates for activities on the course
homepage.

Includes fixup from Shamim Rezaie <shamim@moodle.com>
2021-04-12 11:40:54 +08:00
Paul Holden
f0d44ddf0f MDL-71003 user: fix alignment of autocomplete participant filters. 2021-04-04 23:21:12 +01:00
Jun Pataleta
dd32d65f3a MDL-70817 core_course: Create an activity information output component
The activity information output component displays information about
an activity module that can contain:
1. Activity dates
2. Completion information
   a. A manual completion button; or
   b. A list of automatic completion conditions and their statuses.

This patch also includes a new JS module called
core_course/manual_completion_toggle for toggling the
completion state of activities that support manual completion.
2021-04-02 21:53:20 +08:00
Andrew Nicols
4cf1006227 Merge branch 'MDL-69036' of git://github.com/paulholden/moodle 2021-03-23 09:51:39 +08:00
Ilya Tregubov
11956f9fff MDL-70311 theme_boost: upgrade bootstrap to version 4.6.0 2021-03-17 12:26:45 +02:00
Amaia Anabitarte
f2b6911061 MDL-70978 core_contentbank: Increasing contrast for unlisted content 2021-03-12 12:49:07 +01:00
Eloy Lafuente (stronk7)
82b2488305 Merge branch 'MDL-70789' of git://github.com/paulholden/moodle 2021-03-10 23:52:16 +01:00
Paul Holden
3294431fd0 MDL-69036 theme_boost: consistent table row hovering for links.
When hovering over table rows with the `dimmed_text` class we
should consistently set the text/link colour.

Co-Authored-By: Mikel Martín <mikel@moodle.com>
2021-03-09 16:22:15 +00:00
Jun Pataleta
9419124654 Merge branch 'MDL-69883' of https://github.com/paulholden/moodle 2021-03-03 14:35:06 +08:00
Paul Holden
7aa234db32 MDL-69883 message: fix lazy loading of conversations.
Set max-height on each container section rather than the container
itself, so that each can respond to the scrollBottom event within
the lazy loading module (which handles the overflow itself).
2021-02-24 22:01:03 +00:00
Sara Arjona
2ccd242538 MDL-67974 core_badges: Recovered expired stamp
Expired stamp icon displayed over the badge images has been added
again to CSS (it was lost at any point).
2021-02-23 15:26:25 +01:00
Andrew Nicols
a84a55bd45 MDL-64554 user: Fix use of Private files page on classic
The "Private files" link does not exist in the site navigation when
using the classic theme, so it is not possible to test the dedicated
page via Behat at this time.
2021-02-19 09:33:06 +08:00
François Moreau
3776fbafb2 MDL-69762 core_contentbank: let users hide their content 2021-02-15 13:26:32 -05: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
Shamim Rezaie
805df4f846 MDL-70173 theme_boost: Fix empty link issue on the "Go to top" button
On behat, we have to use a more specific test step if we are looking
for a "Go" button on a modal. The reason is that the html of the modal
content is put after the html of the "Go to top" button, so behat
may find the "Go to top" button if we just look for "Go".
2021-02-09 16:16:09 +11:00
Shamim Rezaie
97b0401443 MDL-70173 theme_boost: Increase the size of notification counter
WAVE considers any text with the size of 10px or below really small.
Increasing the font size of the navbar counter by 1px should not make a
big negative impact on the design, but improves accessibility.
2021-02-09 16:16:09 +11:00
Andrew Nicols
f979519ff6 Merge branch 'MDL-56772-master' of git://github.com/peterRd/moodle 2021-02-03 10:26:26 +08:00
Andrew Nicols
5b6063e226 Merge branch 'MDL-66932_master' of https://github.com/nadavkav/moodle 2021-02-03 10:06:32 +08:00
Víctor Déniz
35a0bec31a Merge branch 'MDL-59782-master' of git://github.com/bmbrands/moodle 2021-02-02 09:36:19 +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
Bas Brands
12bc605457 MDL-59782 core_question: improve questionbank highlighting 2021-01-28 08:12:58 +01:00
Andrew Nicols
52d9024580 MDL-66979 behat: Pad messaging drawer
This works around an issue highlighted by MDL-70411 whereby some of the
messaging links are covered by the scrollbar in Firefox on MacOS.
2021-01-22 14:52:11 +08:00
Nadav Kavalerchik
75ceb0495a MDL-66932 theme/boost: Use LTR directionality to display user % grades 2021-01-20 09:27:29 +02:00
Peter Dias
ecb1e0dc18 MDL-56772 core: Update the picker styles for rtl langs 2021-01-20 14:05:23 +08:00
Sara Arjona
3810b293ad MDL-70438 contentbank: Add column to view mode for content uses 2021-01-19 16:08:03 +01:00