Bootstrap EventHandler is managing the keydown event at document
level in the capture phase. That is conflicting with dropdown elements
with form autocomplete inputs inside, because when suggestions panel is
open, pressing the "Esc" key will close the whole dropdown.
This commit fixes that behaviour by realocating the Bootsrap dropdown
event listener to the body instead of the document.
This commit will add a bs4-compat SCSS file with some of the helper classes
that are dropped in BS5. That will help third-party plugins to do the migration.
- Add backward compatibility for .media
- Add backward compatibility for badges
- Add backward compatibility for forms
- Add backward compatibility for cards
- Add backward compatibility for .no-gutters
- Add backward compatibility for spacing
- Add backward compatibility for margins and paddings
- Add backward compatibility for float directions
- Add backward compatibility for border directions
- Add backward compatibility for text directions
- Add backward compatibility for .close
- Add backward compatibility for font utilities
- Add backward compatibility for rounded sizes
- Add backward compatibility for sr-only
- Add backward compatibility for custom controls
- Add backward compatibility for .btn-block
The course activities overview shows the section name under each
activity. However, this information should not be present when the
course format does not support sections.
Adds the necessary code to present the feedback information in the
course overview page. Due to this integration, the message user gets
when a feedback is already submitted has been unified and it is now the
same on both activity UI and the overview report.
The changes also affect the AI usage report. The provider column will show
the provider plugin name instead of the plugin class in the database.
Co-authored-by: Stevani Andolo <stevani.andolo@moodle.com>
Adds a new get_instance_record in the cm_info object so core can get the
activity table record without using the $DB object every time. Also, the
method caches de result so getting more than once per execution is much
faster.
- Add new .btn-subtle helper class that accept different colour themes
(.btn-subtle-success, .btn-subtle-warning, ...) and also .btn-subtle-body
for basic styling
- Remove specific styles in course.scss that are not needed anymore
- Adjust some styles in course.scss that were affected by this change