Skip to content

Commit 758da87

Browse files
authored
Add ModalTitle info to migration guide (#727)
1 parent 43cbe32 commit 758da87

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/content/migration-guide.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ Include Bootstrap and Font Awesome icons to your app as easily as adding a Boots
6363

6464
## Components
6565

66-
There are six new components in _dash-bootstrap-components_: `Accordion`, `Breadcrumb`, `FormFloating`, `Offcanvas`, `Pagination`, and `Switch`. Additionally many components have changes to their props.
66+
There are seven new components in _dash-bootstrap-components_: `Accordion`, `Breadcrumb`, `FormFloating`, `ModalTitle`, `Offcanvas`, `Pagination`, and `Switch`. Additionally many components have changes to their props.
6767

68-
Notably previously there was a mix of `size` and `bs_size` props for controlling the size of some components. All components that allow size to be changed now consistently use `size`. To set the HTML `size` property of the underlying `<input />` in the `Input` component, use `html_size` instead.
68+
Notably previously there was a mix of `size` and `bs_size` props for controlling the size of some components. All components that allow size to be changed now consistently use `size`. To set the HTML `size` property of the underlying `<input />` in the `Input` component, or the underlying `<select />` in the `Select` component, use `html_size` instead.
6969

7070
### Accordion <span class="badge bg-success">New</span>
7171
- Added new accordion component. Check out the documentation [here](/docs/components/accordion)
@@ -131,15 +131,16 @@ the [Bootstrap grid docs](https://getbootstrap.com/docs/5.0/layout/grid/#row-col
131131
- <span class="badge bg-danger">Breaking</span> Dropped the `ListGroupHeading` and `ListGroupItemText` components. Both are unnecessary since you can pass any Dash components to the children of `ListGroupItem`. See the [docs](/docs/components/list_group/) for updated examples.
132132

133133
### Modal
134+
- <span class="badge bg-danger">Breaking</span> Wrap any title text with the new `ModalTitle` component to make sure the font size and style is set appropriately. This change is to allow more flexibility in the allowed children of the `ModalHeader`.
134135
- Added `fullscreen` property
135136
- Added `keyboard` property to close modal when escape key is pressed.
136137

137138
### Nav
138-
- <span class="badge bg-danger">Breaking</span> - Dropped `active` property in `NavItem`. You should only need to set `active` on the child `NavLink` instead.
139+
- <span class="badge bg-danger">Breaking</span> Dropped `active` property in `NavItem`. You should only need to set `active` on the child `NavLink` instead.
139140
- Added `navbar_scroll` property. This enables vertical scrolling within the toggleable contents of the nav when used inside a collapsed `Navbar`.
140141

141142
### Navbar
142-
- <span class="badge bg-danger">Breaking</span> - Bootstrap navbars now must be constructed with a container. If you're using `NavbarSimple` you don't need to make any changes! If you are using `Navbar` with a custom layout you probably will need to make changes. See the [docs](/docs/components/list_group/) for updated examples.
143+
- <span class="badge bg-danger">Breaking</span> Bootstrap navbars now must be constructed with a container. If you're using `NavbarSimple` you don't need to make any changes! If you are using `Navbar` with a custom layout you probably will need to make changes. See the [docs](/docs/components/list_group/) for updated examples.
143144

144145
### Offcanvas <span class="badge bg-success">New</span>
145146
- Added the new offcanvas component. See the [docs](/docs/components/offcanvas) for more information.

0 commit comments

Comments
 (0)