From 859d2020b7c2b9900b517c501ec91ead24b94c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikel=20Mart=C3=ADn?= Date: Wed, 3 Jan 2024 12:49:33 +0100 Subject: [PATCH] [docs] Devdocs Bootstrap badges refactor --- docs/devupdate.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/devupdate.md b/docs/devupdate.md index d282922ab3..47654693eb 100644 --- a/docs/devupdate.md +++ b/docs/devupdate.md @@ -7,7 +7,7 @@ tags: -import { Since } from '@site/src/components'; +import { Since, ValidExample, InvalidExample } from '@site/src/components'; This page highlights the important changes that are coming in Moodle 4.4 for developers. @@ -40,6 +40,31 @@ will only update the second enrol instance. A new method `enrol_plugin:find_instance()` is added to the enrol plugin interface to allow plugins to find an existing instance of the same type in the course. If you want your enrolment method to be supported in CSV course upload, you need to implement this [method](./apis/plugintypes/enrol#enrol_pluginfind_instance-stdclass) +## Bootstrap preparations for version 5 + + + +Some of the Bootstrap 4 classes will be deprecated or dropped in its version 5. To prepare for this, some of the current Bootstrap 4 classes usages have been replaced with version 5 compatible classes. This will help us to upgrade to Bootstrap 5 in the future. + +- Badge colour class helpers `.badge-*` have been replaced with background utilities (use `.bg-primary` instead of `.badge-primary`) combined with the corresponding text colour classes (`.text-dark` or `.text-white`) to meet accessibility contrast. +- The `.badge-pill` class has been replaced with `.rounded-pill` + + + +```html +Error badge +``` + + + + + +```html +Error badge +``` + + + ## Previous versions - [Moodle 4.3 developer update](./4.3/devupdate)