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
'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
+
55
62
return(
56
63
<divclassName={styles.Grid}style={style}>
57
64
{children}
@@ -64,4 +71,5 @@ export function formatAreas(areas?: string[]) {
Copy file name to clipboardExpand all lines: polaris.shopify.com/content/components/deprecated/grid.md
+5-3Lines changed: 5 additions & 3 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: Layout and structure
4
+
category: Deprecated
5
5
keywords:
6
6
- one column
7
7
- two column
@@ -14,8 +14,10 @@ keywords:
14
14
- full width containers
15
15
- css grid
16
16
status:
17
-
value: Alpha
18
-
message: This component is slated to be deprecated in v11. Please consider using alternate layout primitive components such as Columns, Inline, or AlphaStack.
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.
Copy file name to clipboardExpand all lines: polaris.shopify.com/content/components/deprecated/index.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,6 @@
2
2
title: Deprecated
3
3
expanded: true
4
4
order: 12
5
+
description: >-
6
+
Deprecated components will be removed in future major versions of Polaris. These components could be deprecated for a [number of reasons](https://polaris.shopify.com/getting-started/components-lifecycle#requirements-for-deprecation) and should be avoided. These components will show warnings in the component file and provide details for alternative usage. For more information, check out the [component lifecycle](https://polaris.shopify.com/getting-started/components-lifecycle#deprecated).
0 commit comments