Skip to content

Commit 3842d64

Browse files
committed
Updating breaking changes list
1 parent 95431df commit 3842d64

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

BREAKING.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ This is a comprehensive list of the breaking changes introduced in the major ver
1818
- [Button](#version-9x-button)
1919
- [Card](#version-9x-card)
2020
- [Chip](#version-9x-chip)
21+
- [Grid](#version-9x-grid)
2122

2223
<h2 id="version-9x-components">Components</h2>
2324

@@ -32,3 +33,51 @@ This is a comprehensive list of the breaking changes introduced in the major ver
3233
<h4 id="version-9x-chip">Chip</h4>
3334

3435
- The `border-radius` of the `ios` and `md` chip now defaults to `10px` and `8px`, respectively, instead of `16px` in accordance with the iOS and Material Design 3 guidelines. To revert to the previous appearance, set the `shape` to `"round"`, or override the `--border-radius` CSS variable to specify a different value.
36+
37+
<h4 id="version-9x-grid">Grid</h4>
38+
- The properties `pull` and `push`, have been removed. The similar look can be achieved with the newly added property `order`.
39+
40+
<h5>Example 1: Swap two columns</h5>
41+
42+
**Version up to 8.x**
43+
```html
44+
<ion-grid>
45+
<ion-row>
46+
<ion-col push="4">1</ion-col>
47+
<ion-col pull="4">2</ion-col>
48+
<ion-col>3</ion-col>
49+
</ion-row>
50+
</ion-grid>
51+
```
52+
**Version 9.x+**
53+
```html
54+
<ion-grid>
55+
<ion-row>
56+
<ion-col order="2">1</ion-col>
57+
<ion-col order="1">2</ion-col>
58+
<ion-col order="3">3</ion-col>
59+
</ion-row>
60+
</ion-grid>
61+
```
62+
63+
<h5>Example 2: Reorder columns with specific sizes</h5>
64+
To reorder two columns where column 1 has `size="9" push="3"` and column 2 has `size="3" pull="9"`:
65+
66+
**Version up to 8.x**
67+
```html
68+
<ion-grid>
69+
<ion-row>
70+
<ion-col push="3">1</ion-col>
71+
<ion-col pull="9">2</ion-col>
72+
</ion-row>
73+
</ion-grid>
74+
```
75+
**Version 9.x+**
76+
```html
77+
<ion-grid>
78+
<ion-row>
79+
<ion-col order="2">1</ion-col>
80+
<ion-col size="3" order="1">2</ion-col>
81+
</ion-row>
82+
</ion-grid>
83+
```

0 commit comments

Comments
 (0)