You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/guides/bs5migration/index.md
+20
Original file line number
Diff line number
Diff line change
@@ -703,3 +703,23 @@ $('#myTab a').on('shown.bs.tab', function () {
703
703
// do something...
704
704
});
705
705
```
706
+
707
+
### SCSS helpers and utilities
708
+
709
+
<Sinceversion="5.0"issueNumber="MDL-80519" />
710
+
711
+
The compatibility layer includes a selection of SCSS helpers and utilities from Bootstrap 4.
712
+
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.
713
+
714
+
Some of the SCSS helpers and utilities available in the backwards-compatibility layer include:
715
+
716
+
-`.media` component
717
+
- Coloured badges using `.badge-success`, `badge-warning`, ... classes
718
+
- Inline forms using `.form-inline` class
719
+
- Spacing utilities like `.mr-1`, `.pl-2`, ...
720
+
-`.sr-only` and `.sr-only-focusable` classes
721
+
- Font utilities like `.font-weight-bold`, `.font-italic`, ...
722
+
- Custom controls in forms using `.custom-radio`, `.custom-switch`, ...
723
+
724
+
All these backwards-compatible SCSS helpers and utilities will be available until the final deprecation in Moodle 6.0.
725
+
More details about the SCSS deprecation process can be found in [SCSS deprecation](/general/development/policies/deprecation/scss-deprecation).
0 commit comments