113020 Commits

Author SHA1 Message Date
Shamim Rezaie
2ac9dc9108 MDL-78885 comboboxsearch: Deprecate trigger 2024-03-22 05:49:52 +11:00
Shamim Rezaie
c9a81b7165 MDL-78885 gradereport_grader: minor fixes to the collapse columns 2024-03-22 05:49:17 +11:00
Shamim Rezaie
893a9e43d1 MDL-78885 comboboxsearch: Some small fixes
- Remove aria-busy
- Remove aria-label from the listbox element. A listbox that is part of
  a combobox does not need to be labelled.
- No need for the aria-label for the select all checkbox because it is
  already enclosed in the <label> tag.

- Having "view results for ..." as aria-label of listbox options is not
  helpful and only creates noise.
- Deprecated (viewresults,core) as it was not used anymore
- aria-hidden="true" should not be used on .d-none elements
- 'noresults' was falsely documented as a required context variable for
  resultset.mustache. Not only it was not required, it was not even
  provided!

- Remove duplicate code from user_selector.mustache
- Remove the redundant aria-label from search_input_auto. It already has
  a label.
- Fix placeholder missing from one case
2024-03-22 04:25:01 +11:00
Shamim Rezaie
1c377fc61e MDL-78885 comboboxsearch: Show x button when user search is not empty 2024-03-22 04:24:23 +11:00
Shamim Rezaie
c122998463 MDL-78885 comboboxsearch: Comboboxes should have a meaningful label
Also, used the combobox's label as the dialogue's label as well
2024-03-22 04:24:23 +11:00
Shamim Rezaie
60aa3614f4 MDL-78885 comboboxsearch: Remove the redundant rtl context variable 2024-03-22 04:24:23 +11:00
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
50eeafeb7d MDL-78885 comboboxsearch: Improve user search and keyboard handling
- Prevent rerendering of the menu when it's already open to preserve the
  selected/highlighted option.
- Allow ArrowUp and ArrowDown to trigger the user search dropdown for
  improved keyboard navigation.

This commit ensures that the menu is not re-rendered when it's already
open, preserving the selected option to enhance the user experience.
Additionally, ArrowUp and ArrowDown keys now trigger the dropdown,
improving keyboard navigation and user interactions.
2024-03-22 04:24:20 +11:00
Shamim Rezaie
ee5c4f8f99 MDL-78885 comboboxsearch: Reset status of filters to a zero state
Most of this is automatically handled by aria.js for other comboboxes.
But the search combobox inside the grade and group dropdowns are special
cases because they are not the same as the toggle element of the
dropdown.
2024-03-22 04:23:57 +11:00
Shamim Rezaie
8e2555dc48 MDL-78885 comboboxsearch: Switch event listener from 'click' to 'change'
Move from listening to 'click' to listening to 'change'
2024-03-22 04:23:55 +11:00
Shamim Rezaie
bff7c88878 MDL-78885 comboboxsearch: .dropdown() calls should be on toggle element
Introduced the toggle property.
2024-03-22 04:23:26 +11:00
Shamim Rezaie
bc6a3f5a8d MDL-78885 comboboxesearch: user search should have value as well 2024-03-22 04:23:26 +11:00
Shamim Rezaie
b4bb1cde97 MDL-78885 comboboxesearch: Comboboxes should have a name and value
- core_grades_renderer::group_selector() was changed previously, but it
  was providing redundant context data to
core_group/comboboxsearch/group_selector and on the other hand, it was
not providing 'name' and 'value' for core/comboboxsearch
- The $groupactionbaseurl parameter of
  core_grades_renderer::group_selector() is now deprecated as it was not
used.
- a bug is fixed: if only a lastname initial was set, the clear search
  button was not being displayed.
2024-03-22 04:23:25 +11:00
Shamim Rezaie
e9ec450668 MDL-78885 comboboxsearch: remove aria-activedecendant on options change 2024-03-22 04:23:22 +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
Shamim Rezaie
d18f7bf5cd MDL-78885 core: combobox should have a valid aria-controls
- The aria-controls attribute cannot refer to an element that doesn't
  exist
- Also update filterDataset so it returns [] when searchTerm is empty
2024-03-22 04:00:15 +11:00
Mathew May
3cf55c3c30 MDL-78885 gradereport_singleview: Behat updates after a11y fixes 2024-03-22 03:26:22 +11:00
Mathew May
e4083441ec MDL-78885 core_user: A11y fixes for user combobox search
Co-authored-by: Shamim Rezaie <shamim@moodle.com>
2024-03-22 03:26:19 +11:00
Mathew May
27c1692867 MDL-78885 gradereport_grader: Collapsing a11y fixes 2024-03-22 02:50:57 +11:00
Ilya Tregubov
39b8e198ff on-demand release 4.4dev+ 2024-03-20 08:54:40 +08:00
Ilya Tregubov
a04bd247be Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2024-03-20 08:54:36 +08:00
Paul Holden
399be61cb9
Merge branch 'MDL-78438-main' of https://github.com/ilyatregubov/moodle into main 2024-03-19 23:18:13 +07:00
Sara Arjona
a399be5f01
Merge branch 'MDL-81073' of https://github.com/paulholden/moodle 2024-03-19 23:18:13 +07:00
Ilya Tregubov
8189d3b2f5
MDL-78438 gradereport_grader: Fix Behat test
Seems Oracle is too slow on pressing buttons :))
2024-03-19 23:18:13 +07:00
Huong Nguyen
5db6238c5b
Merge branch 'MDL-81156-main' of https://github.com/lameze/moodle 2024-03-19 23:18:13 +07:00
Andrew Nicols
3fb159a815
Merge branch 'MDL-77255-main' of https://github.com/HuongNV13/moodle 2024-03-19 23:18:12 +07:00
Huong Nguyen
52c481318a MDL-77255 block_tag_flickr: Update to match with the new API
Flickr dropped php_serial format, we need to change to JSON format
2024-03-19 10:14:18 +07:00
Ilya Tregubov
ef34a20e06 Merge branch 'MDL-79669' of https://github.com/Chocolate-lightning/moodle 2024-03-19 11:09:38 +08:00
Ilya Tregubov
eda139f3a0 Merge branch 'MDL-80240' of https://github.com/paulholden/moodle 2024-03-19 10:27:54 +08:00
Ilya Tregubov
d567ba9a81 Merge branch 'MDL-80919' of https://github.com/paulholden/moodle 2024-03-19 10:14:07 +08:00
Ilya Tregubov
87f5d69ba5 Merge branch 'MDL-78438' of https://github.com/paulholden/moodle 2024-03-19 09:46:59 +08:00
Ilya Tregubov
a4099ff9e3 Merge branch 'MDL-81188-main' of https://github.com/roland04/moodle 2024-03-19 09:22:10 +08:00
Ilya Tregubov
3f57f25af0 Merge branch 'MDL-80793' of https://github.com/OxyOCE/moodle 2024-03-19 09:10:43 +08:00
AMOS bot
12311c699c Automatically generated installer lang files 2024-03-19 00:08:55 +00:00
Jun Pataleta
4c802f72c3
Merge branch 'MDL-81066-main' of https://github.com/sammarshallou/moodle 2024-03-19 07:23:32 +08:00
Paul Holden
ba1f9cb26c
MDL-81073 badges: better Oracle support for expiry filter.
Avoid the following error by casting the bound parameter:

ORA-00932: inconsistent datatypes: expected CHAR got NUMBER.
2024-03-18 19:53:29 +00:00
Sara Arjona
4d4007166c
Merge branch 'MDL-72923-master' of https://github.com/michael-milette/moodle 2024-03-18 16:56:54 +01:00
Sara Arjona
5879fa62d6
Merge branch 'MDL-81259' of https://github.com/paulholden/moodle 2024-03-18 16:19:01 +01:00
Sara Arjona
b52568974e
Merge branch 'MDL-81254' of https://github.com/paulholden/moodle 2024-03-18 16:08:04 +01:00
sam marshall
79038ab3a3 MDL-81066 core_form: Validate form fields on submit only 2024-03-18 13:25:39 +00:00
Sara Arjona
0d7af68082
Merge branch 'MDL-81073' of https://github.com/paulholden/moodle 2024-03-18 12:43:15 +01:00
Mikel Martín
9733ccc381 MDL-81188 form: Fix password element layout
MDL-75670 generated a regression in forms password element layout that was not
being displayed in a single line as before.

- Modify the password element template to display the input and the password
unmask icon in a single line.
- Change the password unmask button styles to be consistent with other
focus states.
- Modify passwordunmask behat form field to work with the new password element
layout changes.
2024-03-18 09:19:35 +01:00
Huong Nguyen
b82dbf002a Merge branch 'MDL-80566' of https://github.com/marinaglancy/moodle 2024-03-18 10:54:36 +07:00
Jun Pataleta
b7cf80a244
Merge branch 'MDL-80279' of https://github.com/pedrojordao/moodle 2024-03-18 11:22:57 +08:00
Huong Nguyen
d3e4821bc7 Merge branch 'MDL-80206-main' of https://github.com/andrewnicols/moodle 2024-03-18 09:42:06 +07:00
Paul Holden
ac4487efd2
MDL-81259 auth: always load password toggle module when required. 2024-03-17 20:35:36 +00:00