7305 Commits

Author SHA1 Message Date
Jun Pataleta
cfb2afb047
Merge branch 'MDL-78558-master' of https://github.com/roland04/moodle 2023-09-08 22:14:27 +08:00
Jun Pataleta
a44a7e7643
MDL-78954 theme: Rebuild CSS 2023-09-08 22:14:26 +08:00
Jun Pataleta
fbcf8db9d3
Merge branch 'MDL-78954-master' of https://github.com/ferranrecio/moodle 2023-09-08 22:14:24 +08:00
Huong Nguyen
4a115b8118
MDL-78619 theme: Communication button fix for Classic 2023-09-08 22:13:10 +08:00
Huong Nguyen
bd372a63d2
Merge branch 'MDL-78619-master' of https://github.com/mickhawkins/moodle 2023-09-07 15:19:18 +07:00
Mikel Martín
8af68bbe09 MDL-78558 core_courseformat: Activity cards UI improvements
- Fix action menu and completion button size
- New 'Add activity' button styles
- Fix restriction container styles
- Fix action menu and groupmode button styles
- Fix hover styles for action menu and groupmode button
- Fix groupmode spacing styles
- Homogenize completion button colours
- Fix inplaceeditable and badge positioning
- Fix export filesize related behat
- Homogenize activity/section availability
- New add topic styles
2023-09-07 09:34:43 +02:00
Jun Pataleta
9d85da5527
Merge branch 'MDL-77863-master' of https://github.com/junpataleta/moodle 2023-09-07 11:04:21 +08:00
Jun Pataleta
60d350c59d
MDL-77863 theme_boost: Fix colours
* Fix tag area text shadow colour. It is originally set to
  `rgba(255, 255, 255, 0.5)` so it should be `rgba($white, 0.5)`
  instead of `rgba($black, 0.5)`.
* Revert colour for `$content-item-unread-colour` to `#f4f4f4` instead
  of `$gray-100`.
2023-09-07 10:57:50 +08:00
Benjamin Abraham
e7caf8bd5f MDL-77863 theme: hardcoded colors in boost moved into variables
Moved all hardcoded colors found in the boost/moodle scss files into variables to make theming and child theme development easier.
2023-09-06 16:20:51 +02:00
Mikel Martín
bb3dca93db MDL-78972 theme_boost: Add dropdown item colour styles
- Create a new SCSS file for dropdown related styles
- Move current dropdown styles from core.scss to new dropdown.scss
- Add helper classes for dropdown item colouring
2023-09-04 11:36:51 +02:00
Andrew Nicols
2e58ae5c03
Merge branch 'MDL-78966-master' of https://github.com/rjnl/moodle 2023-09-01 11:31:17 +08:00
Andrew Nicols
5aadac88be
Merge branch 'MDL-79190-master' of https://github.com/jbs1/moodle 2023-09-01 11:12:55 +08:00
Andrew Nicols
1ce54ee87e
Merge branch 'MDL-72321_master-squashed' of https://github.com/marxjohnson/moodle 2023-08-31 23:02:35 +08:00
Mark Johnson
823af3a8f1 MDL-72321 core_question: Replace old conditions with new datafilters 2023-08-31 15:00:39 +01:00
Mark Johnson
2e02264945 MDL-72321 core: Support disabled options in form-autocomplete
Autocomplete fields can now include disabled options in the suggestion
list. When calling .enchance() on a select list with disabled options,
those options will be added to the autocomplete suggestions with the
aria-disabled arribute set, and will not be selectable.

Datafilters using the autocomplete element can also hook into this by
including disabled options in their list of values.
2023-08-31 15:00:38 +01:00
Jun Pataleta
a90a00d867
Merge branch 'MDL-77657-master-get_extra_scss_code-wrong-order' of https://github.com/danowar2k/moodle 2023-08-31 17:51:17 +08:00
Jeremy Schulz
466a73b18c
MDL-79190 theme_boost: removed obsolete comment 2023-08-29 17:10:43 -04:00
Jun Pataleta
be35034f1c
Merge branch 'MDL-76974' of https://github.com/paulholden/moodle 2023-08-28 17:03:27 +08:00
Michael Hawkins
d0fe8d4c21
MDL-78619 theme: Communication button fixes
The footer button was missing some CSS to factor in the blocks drawer.
Also added noreferrer to the window.open call made when clicking the
communication button, to avoid the risks associated with opening in
_blank without removing access to the referrer and opener (noopener is
implicitly defined in modern browsers when noreferrer is set).
2023-08-27 23:10:16 +08:00
Andrew Nicols
9bacc7efd8
Merge branch 'MDL-79063-master' of https://github.com/junpataleta/moodle 2023-08-25 00:11:05 +08:00
Ilya Tregubov
4bed4ea8f3
Merge branch 'MDL-71212-collapse-expand-all-sections-in-course-index-drawer' of https://github.com/stopfstedt/moodle 2023-08-24 09:22:23 +08:00
Sara Arjona
9cece94b69
Merge branch 'MDL-76982-master' of https://github.com/rjnl/moodle 2023-08-23 22:15:42 +08:00
Sara Arjona
4ab210a823
MDL-78884 theme: Update styles to display new icons properly
- The default box for the icons has been increased from 50px to 52px.
That way, on the course page, the box for the icons has changed from
30px to 32px.
- The icon size has been increased from 16px to 24px on the main course
page and from 24px to 40px on the activity page.
2023-08-23 07:32:49 +02:00
Paul Holden
b30245b3e2
MDL-76974 javascript: convert remaining uses of old preferences API.
Implement component preference definition callbacks, update JS code
to use the `core_user/repository` module instead of the now deprecated
API.
2023-08-22 14:43:34 +01:00
Ferran Recio
e715b7a791 MDL-78954 theme_boost: move action menu css to separate file 2023-08-21 13:19:28 +02:00
Ferran Recio
7fea815e0f MDL-78954 output: remove default chevron from kebab menus
Action menus have a method set_kebab_trigger that converts the action
menu button into a proper kebab icon. However, this method does not
remove the standard bootstrap dropdown chevron and the visual
information is replicated (kebab icon + chevron). For now this method is
only used a couple of times but in every case (grade, course...) they
add unnecessary adhoc css rules to hide the chevron when it should be
the standard behaviour. This commit remove the chevron when the action
menu is displayed as a kebab menu.
2023-08-21 13:19:22 +02:00
Ferran Recio
729937c89a MDL-78954 theme_boost: action menu subpanel styling 2023-08-21 10:39:16 +02:00
Daniel Poggenpohl
1f2f32824d MDL-77657 theme: Corrected return type 2023-08-21 08:39:54 +02:00
Stefan Topfstedt
7b04638c52 MDL-71212 core_course: adds controls to the course index drawer. 2023-08-18 11:00:55 -07:00
Jun Pataleta
294ea131a7
MDL-79063 theme_boost: Match .disabled font colour with .text-muted
* For consistency
* The font colour for .text-muted meets a contrast ratio of 4.69:1
which meets WCAG 2.1 Level AA success criterion for minimum contrast.
2023-08-18 16:02:13 +08:00
Rajneel Totaram
d2b80feee4 MDL-76982 theme_classic: Fix positioning of sticky previous/next buttons 2023-08-18 18:53:10 +12:00
Laurent David
1558cd4bcf MDL-75762 theme_boost: Fix popover on large pages
* On the grader report the help button popover is cut and some of it
is offscreen. This patches fixes the footer help button popover
layout.
2023-08-14 07:56:54 +02:00
Ferran Recio
b594536ef0 MDL-75762 gradereport_grader: fix sticky headers 2023-08-14 07:56:54 +02:00
Ferran Recio
c7e9af30df MDL-75762 theme_boost: fix sticky footer page scroll 2023-08-14 07:23:12 +02:00
Laurent David
da2f2c9c45 MDL-75762 core_courseformat: Fix accessibility issue
* Reverse the changes in MDL-74740 to fix left drawer issue (drawer
was scrolling with the page)
2023-08-14 07:23:12 +02:00
Laurent David
cced0e77f6 MDL-75762 core_courseformat: Use page scroll instead of section
* The scroll value is not restored when we navigate into activities as only a
section of the page was scrolled.
* Remove the overflow for the page section so the full page is scrolled
* Restore side menu navigation synchronisation
2023-08-14 07:22:06 +02:00
Jun Pataleta
44787c35bc
Merge branch 'MDL-78528-master' of https://github.com/sarjona/moodle 2023-08-10 18:32:22 +07:00
Rajneel Totaram
fc495744a5 MDL-78966 theme: Fix site event icon size in upcoming events block 2023-08-10 19:22:17 +12:00
Sara Arjona
2e41286ad3
MDL-78528 course: Display all forms in default activity completion page
This commit displays all the module forms together in the default
activity completion page:

- The checkboxes have been removed. Now the activity names are
displayed as accordions.
- Module names have been changed from plural to singular.
- The activity completion form is displayed below each module name,
when the chevron icon is expanded. The cancel button is not displayed.
- The CSS has been updated to meet the prototype styling.
2023-08-09 09:12:44 +02:00
Huong Nguyen
cb1d6106c6
Merge branch 'MDL-78286-master' of https://github.com/roland04/moodle 2023-08-08 21:34:32 +07:00
Mikel Martín
848a90d1e5 MDL-78286 core_courseformat: Add direct link to edit completion settings 2023-08-08 16:22:55 +02:00
Sara Arjona
6fb01e22ab
Merge branch 'MDL-77658-master' of https://github.com/SysBind/moodle 2023-08-08 13:29:43 +02:00
chen levy
ec7e9d6d5d MDL-77658 theme: Fixed RTL manage course categories menu
fixed course checkboxes that appears on the categories menu on RTL
2023-08-06 09:19:27 +03:00
Ferran Recio
105324e6fd MDL-78665 output: add subpanels to action menu
Many times the action menu item triggers modals to show more information
to the user. In most cases this is enough, however, a modal will close
the menu and the user is not able to see the modal content in the page
context. To solve this now menus can define subpanels that are displayed
next the the menu item when the item is focused or hover. This will be
used to group options like the group mode in activities or to replace
the adhoc solution implemented to select language in the user menu.
2023-08-04 16:09:29 +02:00
Ferran Recio
d04ef6c5e3 MDL-78665 theme_boost: allow behat fake drawers
Drawers have several JS logic depending on the screen size. However,
some generic components like action menu subpanels require fake drawers
to test the behaviour when it is displayed in a drawer (for example in a
block). This patch allow a behat page to have a div with data-region as
fixed-drawer so the component can detect as it is inside a a drawer but
without the autoclose on small screens.
2023-08-04 16:08:00 +02:00
Ferran Recio
3b53616321 MDL-78665 libs: page helpers global amd module
Add a new global module to get information from the page. Some methods
are just local functions moved to as a global library. For example, the
drawers isSmall or isLarge to detect the page width. The other funcionts
added are to detect focusable elements and they are needed to loop on
elements, especially when accessibility keyboard navigation is implemented.
2023-08-04 16:07:59 +02:00
Jun Pataleta
1be10f4249
Merge branch 'MDL-77991' of https://github.com/Chocolate-lightning/moodle 2023-08-03 10:23:24 +08:00
Mathew May
a4b3b0d044 MDL-77991 core: Move tertiary search dropdown component 2023-08-03 09:07:18 +08:00
Jun Pataleta
b2d3f245f2
Merge branch 'MDL-77447-master' of https://github.com/ilyatregubov/moodle 2023-08-02 16:13:19 +08:00
Mikel Martín
8ff60512fb MDL-78289 core_courseformat: New completion dropdown buttons UI
- Update completion dropdown button styles for students depending on activity
overall completion status.
- Add new behat partial named selector 'core_courseformat > Activity completion'
- Add new behat Feature to test activity completion criteria button or dropdown
for students and teachers.
2023-08-01 09:41:21 +02:00