You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### WHY are these changes introduced?
Removed deprecation from `<Grid>`
### WHAT is this pull request doing?
Ensure that `Grid` is available so we can update the props and align
API's with checkout and others
---------
Co-authored-by: Lo Kim <lo.kim@shopify.com>
Co-authored-by: Chloe Rice <chloerice@users.noreply.github.com>
'Deprecation: <Grid /> is deprecated. This component will be removed in a future major version of Polaris. Use <Columns /> instead or a combination of <Columns />, <Inline />, and <AlphaStack />',
58
-
);
59
-
}
60
-
},[]);
61
-
62
51
return(
63
52
<divclassName={styles.Grid}style={style}>
64
53
{children}
@@ -71,5 +60,4 @@ export function formatAreas(areas?: string[]) {
Copy file name to clipboardExpand all lines: polaris.shopify.com/content/components/layout-and-structure/grid.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Grid
3
3
description: Create complex layouts based on [CSS Grid](https://developer.mozilla.org/en-US/docs/Web/CSS/grid).
4
-
category: Deprecated
4
+
category: Layout and structure
5
5
keywords:
6
6
- one column
7
7
- two column
@@ -14,10 +14,8 @@ keywords:
14
14
- full width containers
15
15
- css grid
16
16
status:
17
-
value: Deprecated
18
-
message: >-
19
-
Grid was built prior to layout primitives like columns, inline, and alpha stack. Comparatively, grid is difficult to learn, document, and understand its usage in a codebase.
20
-
The new layout primitives should be used in combination to achieve similar results to grid.
17
+
value: Alpha
18
+
message: This component is a work in progress and ready for exploratory usage, with breaking changes expected in minor version updates. Please use with caution. Learn more about our [component lifecycles](/getting-started/components-lifecycle).
0 commit comments