Skip to content

Commit

Permalink
DOC Document bootstrap upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 23, 2025
1 parent b778111 commit 1f7364f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions en/08_Changelogs/6.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,18 @@ Several JavaScript dependencies have been updated, and a few have been replaced.

Notably, [`react-dnd`](https://react-dnd.github.io/react-dnd/about) has been replaced with [`dnd-kit`](https://dndkit.com/). If you were using `react-dnd` and relying on the webpack externals provided by `silverstripe/admin`, these are no longer available. We recommend refactoring your code to use `dnd-kit` so that your UX is consistent with other drag-and-drop in the CMS.

#### Bootstrap upgrade

We have upgraded from bootstrap 4 to bootstrap 5. Part of this upgrade also included upgrading reactstrap from 8 to 9 and upgrading popperjs from 1 to 2.

Refer to the following upgrade guides for details about changes you may need to make to styling and javascript in your CMS customisations:

- [bootstrap upgrade guide](https://getbootstrap.com/docs/5.0/migration/)
- [reactstrap upgrade guide](https://reactstrap.github.io/?path=/story/home-upgrading--page)
- [popper upgrade guide](https://popper.js.org/docs/v2/migration-guide/)

Note that while the bootstrap guide mentions removing the styling for the `.form-group`, `.form-row`, or `.form-inline` CSS classes, that styling has been included in the CMS to reduce upgrade pain.

## Bug fixes

This release includes a number of bug fixes to improve a broad range of areas. Check the change logs for full details of these fixes split by module. Thank you to the community members that helped contribute these fixes as part of the release!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ Check our [requirements](/getting_started/server_requirements) documentation.
## Tools and libraries

Styles are written in the [SCSS language](https://sass-lang.com/).
We use [Bootstrap 4](https://getbootstrap.com/) styles where possible.
We use [Bootstrap 5](https://getbootstrap.com/) styles where possible.

## Conventions

We follow the [AirBnB CSS Conventions](https://github.com/airbnb/css)
and the [BEM](https://getbem.com/) methodology (block-element-modifier).

Because we use [Bootstrap 4](https://getbootstrap.com/) which
Because we use [Bootstrap 5](https://getbootstrap.com/) which
does not follow [BEM](https://getbem.com/) naming convention there will be
a lot of places where class names voilate BEM.
However, please note that they are not a indicator of how to name classes.
Expand Down

0 comments on commit 1f7364f

Please sign in to comment.