Skip to content

Commit 469ff98

Browse files
avelinejuzser
authored andcommitted
[Layout] AlphaStack update docs for align prop (Shopify#7963)
### WHY are these changes introduced? The docs for `AlphaStack` `align` prop are confusing. `align` changes the horizontal alignment, not vertical ### WHAT is this pull request doing? Update the docs from vertical to horizontal
1 parent fb01c81 commit 469ff98

File tree

4 files changed

+338
-324
lines changed

4 files changed

+338
-324
lines changed

.changeset/loud-onions-check.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@shopify/polaris': minor
3+
'polaris.shopify.com': minor
4+
---
5+
6+
Updated `AlphaStack` docs for `align` prop

polaris-react/src/components/AlphaStack/AlphaStack.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface AlphaStackProps extends React.AriaAttributes {
2222
* @default 'div'
2323
*/
2424
as?: Element;
25-
/** Vertical alignment of children
25+
/** Horizontal alignment of children
2626
* @default 'start'
2727
*/
2828
align?: Align;

polaris.shopify.com/content/components/alpha-stack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ examples:
2323
- fileName: alpha-stack-with-align.tsx
2424
title: Alignment
2525
description: >-
26-
Use to vertically align Stack.
26+
Use to horizontally align Stack.
2727
---
2828

2929
## Related components

0 commit comments

Comments
 (0)