Bootstrap 5
“I can do this all day”
The process
PopperJS upgrade �
SCSS Deprecation process�
BS4 Refactoring in advance
Create a BS5 “bridge”�
BS5 upgrade
BS4 compatibility layer
Final deprecation
4.4
4.5
5.0
6.0
The process
Status
What that means for me?
Bootstrap in Moodle
*.mustache
*.php
*.js
*.css
¡Breaking changes! 😱
What do I need
to do?
Example #1
.form-inline and .form-group
Example #2
.pr-, .ml-, .text-left, .float-right, ...
Example #3
data-attributes
Example #4
JQuery
More information
Moodle devdocs
Documentación Bootstrap
How could I detect the changes
Behat would help you!
1
2
Run behat test using “--scss-deprecations” parameter
Check them and fix the errors
Design mode also helps
1
2
Enable setting
Analyse and fix the errors
Deprecated style in use (.mr)
Too many things,
do I have time?
Compatibility layer
Some more helpful documentation
Danke!
Copyright 2023 © Moodle Pty Ltd