Skip to content

Commit 926c7cf

Browse files
authored
feat(v5): Set ColOrder types to max 5 (react-bootstrap#5376)
* feat(v5): Set ColOrder types to max 5 * Split col numbers into another type
1 parent d780b43 commit 926c7cf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Col.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ type NumberAttr =
2323
| '11'
2424
| '12';
2525

26-
type ColOrder = 'first' | 'last' | NumberAttr;
26+
type ColOrderNumber = number | '1' | '2' | '3' | '4' | '5';
27+
type ColOrder = ColOrderNumber | 'first' | 'last';
2728
type ColSize = boolean | 'auto' | NumberAttr;
2829
type ColSpec =
2930
| ColSize

www/src/pages/migrating.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ Below is a _rough_ account of the breaking API changes as well as the minimal ch
3232

3333
- removed `toggle`.
3434

35+
### Col
36+
37+
- `ColOrder` is now maximum 5 instead of 12.
38+
3539
### Form
3640

3741
- removed `inline`.

0 commit comments

Comments
 (0)