Skip to content

Commit 78ff7bd

Browse files
authored
Merge pull request #1257 from roland04/devdocs-bootstrap5-compatibility-scss
[docs] Documentation for MDL-80519
2 parents b3603f6 + a6be1ab commit 78ff7bd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/guides/bs5migration/index.md

+20
Original file line numberDiff line numberDiff line change
@@ -703,3 +703,23 @@ $('#myTab a').on('shown.bs.tab', function () {
703703
// do something...
704704
});
705705
```
706+
707+
### SCSS helpers and utilities
708+
709+
<Since version="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

Comments
 (0)