Commit graph

7722 commits

Author SHA1 Message Date
Shamim Rezaie
a320dff736 MDL-78885 aria: Add support for data-short-text 2024-03-22 04:24:23 +11:00
Shamim Rezaie
7fa36e6bf0 MDL-78885 aria: Improve focus back
To support the case when a combobox is inside another dropdown
2024-03-22 04:24:23 +11:00
Shamim Rezaie
d886cba9d3 MDL-78885 comboboxsearch: Enable aria.js for auto handling
- Added the `dropdown` class to ensure toggle element focus when the
  dropdown is closed.
- Improved keyboard handling by adding the `dropdown` class.
  aria.js will automatically handle keyboard interactions.
- Removed redundant keyboard handling.
- The "view all results" option is just a normal option in a combobox.
  It should not be treated as the default action for a combobox.
- Ensured correct markup for 'Esc' key handling. aria.js automatically
  focuses on the toggle element if the dropdown's toggle and the
  dropdown menu are wrapped within a .dropdown element.
- Implemented menu closure for outside clicks and when leaving the edit
  box.
- Manually focused on the user search element when opening the search
 dropdown due to a focusLock issue.
- Fix the issue of another dropdown staying open
- Clicking on the clearSearchButton should not close the dropdown
2024-03-22 04:22:24 +11:00
Shamim Rezaie
2f023f9ebe MDL-78885 theme_boost: Revert 3a8eeedf of MDL-75274.
These changes that I'm undoing were not only wrong, but also not used
and were left over code.
2024-03-22 04:00:18 +11:00
Shamim Rezaie
535bfb3052 MDL-78885 aria: Fix pressing Home and End on editable comboboxes 2024-03-22 04:00:18 +11:00
Shamim Rezaie
e0d2a3924e MDL-78885 aria: Automatically trap focus inside dialog dropdowns
- there is no need to set the focus after a dropdown is opened. It is
automatically set as the result of trapping focus.
2024-03-22 04:00:18 +11:00
Sara Arjona
1e1d6d8be8
Merge branch 'MDL-71734' of https://github.com/paulholden/moodle 2024-03-21 16:11:40 +01:00
Paul Holden
97a5b89317
Merge branch 'MDL-81163-main' of https://github.com/sarjona/moodle into main 2024-03-21 14:41:41 +00:00
Sara Arjona
2291df7225
Merge branch 'MDL-81294-main' of https://github.com/roland04/moodle 2024-03-21 13:21:42 +01:00
Paul Holden
011619dbd3
MDL-71734 lang: final removal of deprecated 400 strings. 2024-03-21 09:44:15 +00:00
Ilya Tregubov
1e13aa23b6 Merge branch 'MDL-80850-main' of https://github.com/HuongNV13/moodle 2024-03-21 14:24:42 +08:00
Huong Nguyen
b0220f27cb MDL-80850 Javascript: Add new core/dropzone module 2024-03-21 12:45:55 +07:00
Ilya Tregubov
cd2fb2fe78 Merge branch 'MDL-79668-main' of https://github.com/kevpercy/moodle 2024-03-21 12:22:58 +08:00
Sara Arjona
9d7ab10f29
MDL-81163 course: Use component_callback for is_branded 2024-03-20 17:04:55 +01:00
Mikel Martín
7509c3bd34 MDL-79368 theme_boost: Update screenshot image 2024-03-20 15:52:39 +01:00
Mikel Martín
5ebc01f12d MDL-79368 theme_classic: Update screenshot image 2024-03-20 15:52:30 +01:00
Mikel Martín
1248fa7537 MDL-81294 core: Fix sticky footer height
In MDL-81184 a regression was generated by changing the height property
with min-height in the sticky footer. That caused unexpended behaviour
of the sticky footer being partially displayed in the course page
for small devices.
Replacing min-height with height as the original design.
2024-03-20 11:38:22 +01:00
Jun Pataleta
20a7f5a180
Merge branch 'MDL-81110-main' of https://github.com/roland04/moodle 2024-03-20 11:10:25 +08:00
Jun Pataleta
9573a6f9c1
Merge branch 'MDL-79007_main' of https://github.com/marxjohnson/moodle 2024-03-20 10:45:14 +08:00
Mikel Martín
60a4bf5bcc MDL-81110 theme_boost: Fix scroll-margin-top in #maincontent
- Fix scroll-margin-top in #maincontent element
- Add scroll-margin-top for focused elements too
2024-03-19 10:21:19 +01:00
sam marshall
79038ab3a3 MDL-81066 core_form: Validate form fields on submit only 2024-03-18 13:25:39 +00:00
Ilya Tregubov
505d9c2421 Merge branch 'MDL-81109-main' of https://github.com/lucaboesch/moodle 2024-03-15 08:34:34 +08:00
Sara Arjona
39399efaf8
Merge branch 'MDL-81213-main' of https://github.com/roland04/moodle 2024-03-14 11:21:58 +01:00
Mikel Martín
f8c3d1c36c MDL-81213 theme_boost: Fix .form-control width
MDL-75670 generated a regression in some forms where .form-control
elements where now being displayed as full width (Bootstrap default).

- Override Bootstrap default width: 100% for .form-control elements
- Move related .custom-select same override from core.scss to forms.scss
2024-03-13 12:18:36 +01:00
Andrew Nicols
9cdc5850c5
Merge branch 'MDL-75952' of https://github.com/stronk7/moodle 2024-03-12 10:45:02 +08:00
Huong Nguyen
7f138acd43 Merge branch 'MDL-81184-main' of https://github.com/roland04/moodle 2024-03-12 09:28:27 +07:00
Huong Nguyen
88dc0f5010 Merge branch 'MDL-79769-master' of https://github.com/davewoloszyn/moodle 2024-03-12 09:18:10 +07:00
Kevin Percy
39813b1f50 MDL-79668 lib: Update Font Awesome to v6.5.1 2024-03-11 17:08:40 +08:00
Laurent David
cbe47c1cf4 MDL-79829 theme: Fix Course index draggable cursor
* Make the cursor consistent for drag and drop operation
to be the same in the course content and the course index
2024-03-11 09:24:25 +01:00
Mikel Martín
513a574984 MDL-81184 theme_boost: Fix sticky footer in behat
While in behat debug mode, because sticky footer is not fixed at
the bottom of the page, it does not have to add paddings/margins
related to the drawers.
2024-03-11 08:18:18 +01:00
Eloy Lafuente (stronk7)
361dfe8145
MDL-75952 general: Since php81, refection->setAccessible() is no-op
Refereces:
- https://wiki.php.net/rfc/make-reflection-setaccessible-no-op
- https://www.php.net/manual/en/reflectionproperty.setaccessible.php
- https://www.php.net/manual/en/reflectionmethod.setaccessible.php

As of PHP 8.1.0, calling this method has no effect; all methods are
invokable by default. So, let's remove all uses from core, they are
no-op.
2024-03-10 21:15:00 +01:00
Marina Glancy
36c91ff907 MDL-80431 forms: do not use fieldset tag without a legend 2024-03-08 15:02:15 +00:00
Luca Bösch
060f9714d2 MDL-81109 themes: Remove double lines between indented activities. 2024-03-08 13:36:07 +01:00
David Woloszyn
cb6acfc46a MDL-79769 login: Add password toggle icon to the login screen 2024-03-08 15:54:11 +11:00
Ilya Tregubov
b05ca81d6e Merge branch 'MDL-80856-main' of https://github.com/roland04/moodle 2024-03-08 09:42:25 +08:00
Jun Pataleta
3278ce7aba
Merge branch 'MDL-65292' of https://github.com/stronk7/moodle 2024-03-08 08:00:41 +08:00
Mark Johnson
a5a25988dc
MDL-79007 calendar: Expose block month link names to screen readers 2024-03-07 10:39:38 +00:00
Andrew Nicols
9e16225864
Merge branch 'MDL-80183' of https://github.com/paulholden/moodle 2024-03-06 14:04:30 +08:00
Paul Holden
d3a63252d6
Merge branch 'MDL-80620-main' of https://github.com/roland04/moodle into main 2024-03-05 14:39:02 +00:00
Sara Arjona
e1034deb8b
Merge branch 'MDL-75670-main' of https://github.com/roland04/moodle 2024-03-04 16:05:18 +01:00
Mikel Martín
d0d62fd06c MDL-75670 theme: Refactor form-inline helper class dropped in BS5
- Replace .form-inline Bootstrap helper class with .d-flex.flex-wrap.align-items-center
- Refactor .form-inline occurrences in SCSS files or remove when unneeded
2024-02-29 13:56:46 +01:00
Mikel Martín
4ce883ae21 MDL-75670 theme: Refactor form-group helper class dropped in BS5
- Replace .form-group Boostrap helper class with .mb-3. The .form-group class was only
adding margin bottom styles, so it is an straightforward change.
- Replace .form-group references in SCSS files with .fitem now .form-group has been removed.
- There were some other .form-group occurrences in the code that were using it not for styling
but incorrectly for managing some logic. These have been also replaced with .fitem or removed.
2024-02-29 13:55:37 +01:00
Huong Nguyen
1c11531ab7 Merge branch 'MDL-80364' of https://github.com/pedrojordao/moodle 2024-02-29 10:44:39 +07:00
Eloy Lafuente (stronk7)
ba1f804ffa
MDL-65292 style: Fix all function declarations white space
This has been generated running the following Sniffs, all
them part of the Moodle's CodeSniffer standard:
- PSR12.Functions.ReturnTypeDeclaration
- PSR12.Functions.NullableTypeDeclaration
- moodle.Methods.MethodDeclarationSpacing
- Squiz.Whitespace.ScopeKeywordSpacing

All them are, exclusively, about correct spacing, so the changes
are, all them, only white space changes.

Only exceptions to the above are 3 changes what were setting the
return type in a new line, and, when that happens, the closing
parenthesis (bracket) has to go to the same line than the colon.
2024-02-28 23:33:26 +01:00
Pedro Jordao
25125bbfe2 MDL-80364 message: Change icon and background-color when item selected
Icon and background-color had contrast issues in the selected state.
2024-02-27 15:09:38 +01:00
Sara Arjona
803af22d60
Merge branch 'MDL-80621-main' of https://github.com/roland04/moodle 2024-02-27 12:55:51 +01:00
Mikel Martín
af50bda3d6 MDL-80620 theme_boost: Change expand/collapse buttons style 2024-02-27 12:33:47 +01:00
Mikel Martín
30a71b2b44 MDL-80856 theme_boost: Improve sticky footer styles with drawers 2024-02-26 15:36:35 +01:00
Mikel Martín
de047f3767 MDL-80621 core_courseformat: Add new activity separator styles
- Created a new divider template to generate activity and section dividers
- Refactored templates and styles for the course sections for the new
  section dividers
- Changed the topics format 'hasaddsection' property to 'true' so now adding
  sections to the bottom of the course will be handled by the format instead
  of the last section. Also re-styled this 'Add topic' button.
- Refactored templates and styles for the course activities for the new
  activity dividers
- Fixed some related behat that failed because of these changes
- Moved blocks related SCSS to the blocks file and removed some unused SCSS
2024-02-26 10:15:19 +01:00
Sara Arjona
31989d9f9d
MDL-80395 theme: Refactor mixins deprecated in BS4 2024-02-23 07:22:49 +01:00