Skip to content

Commit

Permalink
fixup! Docs(web,web-twig,web-react): Migration Guides cleanup #DS-1250
Browse files Browse the repository at this point in the history
  • Loading branch information
crishpeen committed Jun 9, 2024
1 parent 6cb8448 commit d287fd7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions docs/migrations/web-react/MIGRATION-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,17 @@ The default number of columns is 12, so the equation is `1 + (12 - over) / 2` mo
```
`columnStart` = 1 + (12 - 6) / 2 = 4
- Responsive grid item centered over 8 columns on mobile, 6 columns on tablet, and 4 columns on desktop:
`diff
-<GridSpan over="8" tablet="6" desktop="4">…</GridSpan>
+<GridItem
+ columnStart="{{ mobile: 3, tablet: 4, desktop: 5 }}"
+ columnEnd="{{ mobile: 'span 8', tablet: 'span 6', desktop: 'span 4' }}"
+>…</GridItem>
` - `columnStart` = 1 + (12 - 8) / 2 = 3 - `columnStart` = 1 + (12 - 6) / 2 = 4 - `columnStart` = 1 + (12 - 4) / 2 = 5
</details>
```diff
-<GridSpan over="8" tablet="6" desktop="4">…</GridSpan>
+<GridItem
+ columnStart={{ mobile: 3, tablet: 4, desktop: 5 }}
+ columnEnd={{ mobile: 'span 8', tablet: 'span 6', desktop: 'span 4' }}
+>…</GridItem>
```
- `columnStart` = 1 + (12 - 8) / 2 = 3
- `columnStart` = 1 + (12 - 6) / 2 = 4
- `columnStart` = 1 + (12 - 4) / 2 = 5
</details>

### Header: HeaderDesktopActions `isAtEnd` prop

Expand Down

0 comments on commit d287fd7

Please sign in to comment.