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
+46Lines changed: 46 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -202,3 +202,49 @@ The `.card-deck` helper class has been replaced with utility classes.
202
202
```
203
203
204
204
</ValidExample>
205
+
206
+
## Create a BS5 "bridge"
207
+
208
+
<Sinceversion="4.5"issueNumber="MDL-79917" />
209
+
210
+
Some simple breaking changes could be also addressed in advance creating a BS5 "bridge". With small additions to this "bridge", we can refactor in advance the occurrences in the codebase for some dropped or changed features in BS5.
211
+
212
+
A new SCSS file `bs5-bridge.scss` has been created in the `theme/boost/scss/moodle` folder. This file will contain the necessary changes to make the codebase compatible with Bootstrap 5.
213
+
214
+
:::info Example of a bridge in `bs5-bridge.scss`
215
+
216
+
```css
217
+
/* In Bootstrap 5 the .no-gutters class has been replaced with .g-0, so we can
218
+
add a new class in the bridge file to make the codebase compatible with BS5. */
219
+
.g-0 {
220
+
@extend .no-gutters;
221
+
}
222
+
```
223
+
224
+
:::
225
+
226
+
### No gutters
227
+
228
+
The `.no-gutters` grid class has been replaced with `.g-0`.
0 commit comments