Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Documentation for MDL-80519 #1257

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/guides/bs5migration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -703,3 +703,23 @@ $('#myTab a').on('shown.bs.tab', function () {
// do something...
});
```

### SCSS helpers and utilities

<Since version="5.0" issueNumber="MDL-80519" />

The compatibility layer includes a selection of SCSS helpers and utilities from Bootstrap 4.
This provision enables developers to continue using familiar class names and mixins while they work on updating their custom styles to align with Bootstrap 5's new utility API system and class structure.

Some of the SCSS helpers and utilities available in the backwards-compatibility layer include:

- `.media` component
- Coloured badges using `.badge-success`, `badge-warning`, ... classes
- Inline forms using `.form-inline` class
- Spacing utilities like `.mr-1`, `.pl-2`, ...
- `.sr-only` and `.sr-only-focusable` classes
- Font utilities like `.font-weight-bold`, `.font-italic`, ...
- Custom controls in forms using `.custom-radio`, `.custom-switch`, ...

All these backwards-compatible SCSS helpers and utilities will be available until the final deprecation in Moodle 6.0.
More details about the SCSS deprecation process can be found in [SCSS deprecation](/general/development/policies/deprecation/scss-deprecation).
Loading