Skip to content

Commit

Permalink
[docs] Devdovs Bootstrap badges refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
roland04 committed Jan 3, 2024
1 parent 394e96d commit c2eca6a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/devupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,30 @@ 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

<Since version="4.4" issueNumber="MDL-71979" />

Some of the Bootstrap 4 classes will 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 color class helpers `.bg-warning`,`.bg-info`, ... have been replaced with `.bg-warning` `.bg-info`, ... and the corresponding text color classes `.text-dark` `.text-white` to meet accessibility contrast.
- Also `.badge-pill` has been replaced with `.rounded-pill`

:::info Badges refactor example

The following code:

```html
<span class="badge badge-danger badge-pill">Error badge</span>
```

should be replaced with:

```html
<span class="badge bg-danger text-white rounded-pill">Error badge</span>
```
:::

## Previous versions

- [Moodle 4.3 developer update](./4.3/devupdate)
Expand Down

0 comments on commit c2eca6a

Please sign in to comment.