Skip to content

Conversation

@yurm04
Copy link
Contributor

@yurm04 yurm04 commented Dec 5, 2022

WHY are these changes introduced?

We need flex-direction: column-reverse in order to rebuild EmptyState. Adding this to AlphaStack

Supports #7809

WHAT is this pull request doing?

How to 🎩

🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines

Copy-paste this code in playground/Playground.tsx:
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}

🎩 checklist

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2022

size-limit report 📦

Path Size
polaris-react-cjs 211.07 KB (+0.02% 🔺)
polaris-react-esm 136.31 KB (+0.03% 🔺)
polaris-react-esnext 192.08 KB (+0.02% 🔺)
polaris-react-css 42 KB (-0.01% 🔽)

@yurm04 yurm04 marked this pull request as ready for review December 6, 2022 16:40
Copy link
Contributor

@aveline aveline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@yurm04 yurm04 merged commit 49ed527 into main Dec 6, 2022
@yurm04 yurm04 deleted the alpha-stack-direction branch December 6, 2022 17:09
mrcthms pushed a commit that referenced this pull request Dec 7, 2022
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/polaris@10.15.0

### Minor Changes

- [#7842](#7842)
[`49ed527b2`](49ed527)
Thanks [@yurm04](https://github.com/yurm04)! - Add flex-direction:
column-reverse to AlphaStack

### Patch Changes

- [#7851](#7851)
[`b36f63183`](b36f631)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated shadow and
placement of the BulkActions bar for greater visibility

## @shopify/plugin-polaris@0.0.20



## polaris.shopify.com@0.27.1

### Patch Changes

- Updated dependencies
\[[`49ed527b2`](49ed527),
[`b36f63183`](b36f631)]:
    -   @shopify/polaris@10.15.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
yurm04 pushed a commit that referenced this pull request Jan 11, 2023
Fixes [#7564](#7564)

- Remove max-width from AlphaStack
- Rebuild EmptyState with layout components

DEPENDS ON #7842. Merge that in first then bring
`layout-rebuild-batch-2` up to date with `main` and then merge in those
changes into this branch

### [✅ RESOLVED] UX Review
There is a discrepancy in the size of the image container. The update
`EmptyState` component image container is 5px smaller in height than the
production one. The comparison below shows the production version
(first) vs the update component (second). This results in about 5px
additional whitespace in the prod version. This different is due to the
production version relying on a flex property on the image container
that we don't currently implement. Is this difference acceptable or
should we adjust the image container size somehow?

<details>
<summary>Compare image container whitespace before and after</summary>


https://user-images.githubusercontent.com/4642404/204934759-3363b103-5118-4335-ab87-79edaa5d0634.mov

Production image size 
<img width="1071" alt="prod-size"
src="https://user-images.githubusercontent.com/4642404/204935557-dc3ea1c8-778f-4644-8c2b-62d524b2f03b.png">

Updated ima
<img width="1071" alt="updated-size"
src="https://user-images.githubusercontent.com/4642404/204935620-be70ec16-0ece-432e-9105-64e94ba2525c.png">


</details>

Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
Co-authored-by: aveline <aveline@users.noreply.github.com>
Co-authored-by: Lo Kim <lo.kim@shopify.com>
Co-authored-by: Chaz Dean <59836805+chazdean@users.noreply.github.com>
chazdean added a commit that referenced this pull request Jan 12, 2023
Fixes [#7564](#7564)

- Remove max-width from AlphaStack
- Rebuild EmptyState with layout components

DEPENDS ON #7842. Merge that in first then bring
`layout-rebuild-batch-2` up to date with `main` and then merge in those
changes into this branch

### [✅ RESOLVED] UX Review
There is a discrepancy in the size of the image container. The update
`EmptyState` component image container is 5px smaller in height than the
production one. The comparison below shows the production version
(first) vs the update component (second). This results in about 5px
additional whitespace in the prod version. This different is due to the
production version relying on a flex property on the image container
that we don't currently implement. Is this difference acceptable or
should we adjust the image container size somehow?

<details>
<summary>Compare image container whitespace before and after</summary>


https://user-images.githubusercontent.com/4642404/204934759-3363b103-5118-4335-ab87-79edaa5d0634.mov

Production image size 
<img width="1071" alt="prod-size"
src="https://user-images.githubusercontent.com/4642404/204935557-dc3ea1c8-778f-4644-8c2b-62d524b2f03b.png">

Updated ima
<img width="1071" alt="updated-size"
src="https://user-images.githubusercontent.com/4642404/204935620-be70ec16-0ece-432e-9105-64e94ba2525c.png">


</details>

Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
Co-authored-by: aveline <aveline@users.noreply.github.com>
Co-authored-by: Lo Kim <lo.kim@shopify.com>
Co-authored-by: Chaz Dean <59836805+chazdean@users.noreply.github.com>
chazdean added a commit that referenced this pull request Jan 13, 2023
Fixes [#7564](#7564)

- Remove max-width from AlphaStack
- Rebuild EmptyState with layout components

DEPENDS ON #7842. Merge that in first then bring
`layout-rebuild-batch-2` up to date with `main` and then merge in those
changes into this branch

### [✅ RESOLVED] UX Review
There is a discrepancy in the size of the image container. The update
`EmptyState` component image container is 5px smaller in height than the
production one. The comparison below shows the production version
(first) vs the update component (second). This results in about 5px
additional whitespace in the prod version. This different is due to the
production version relying on a flex property on the image container
that we don't currently implement. Is this difference acceptable or
should we adjust the image container size somehow?

<details>
<summary>Compare image container whitespace before and after</summary>


https://user-images.githubusercontent.com/4642404/204934759-3363b103-5118-4335-ab87-79edaa5d0634.mov

Production image size 
<img width="1071" alt="prod-size"
src="https://user-images.githubusercontent.com/4642404/204935557-dc3ea1c8-778f-4644-8c2b-62d524b2f03b.png">

Updated ima
<img width="1071" alt="updated-size"
src="https://user-images.githubusercontent.com/4642404/204935620-be70ec16-0ece-432e-9105-64e94ba2525c.png">


</details>

Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
Co-authored-by: aveline <aveline@users.noreply.github.com>
Co-authored-by: Lo Kim <lo.kim@shopify.com>
Co-authored-by: Chaz Dean <59836805+chazdean@users.noreply.github.com>
laurkim added a commit that referenced this pull request Jan 26, 2023
Fixes [#7564](#7564)

- Remove max-width from AlphaStack
- Rebuild EmptyState with layout components

DEPENDS ON #7842. Merge that in first then bring
`layout-rebuild-batch-2` up to date with `main` and then merge in those
changes into this branch

### [✅ RESOLVED] UX Review
There is a discrepancy in the size of the image container. The update
`EmptyState` component image container is 5px smaller in height than the
production one. The comparison below shows the production version
(first) vs the update component (second). This results in about 5px
additional whitespace in the prod version. This different is due to the
production version relying on a flex property on the image container
that we don't currently implement. Is this difference acceptable or
should we adjust the image container size somehow?

<details>
<summary>Compare image container whitespace before and after</summary>


https://user-images.githubusercontent.com/4642404/204934759-3363b103-5118-4335-ab87-79edaa5d0634.mov

Production image size 
<img width="1071" alt="prod-size"
src="https://user-images.githubusercontent.com/4642404/204935557-dc3ea1c8-778f-4644-8c2b-62d524b2f03b.png">

Updated ima
<img width="1071" alt="updated-size"
src="https://user-images.githubusercontent.com/4642404/204935620-be70ec16-0ece-432e-9105-64e94ba2525c.png">


</details>

Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
Co-authored-by: aveline <aveline@users.noreply.github.com>
Co-authored-by: Lo Kim <lo.kim@shopify.com>
Co-authored-by: Chaz Dean <59836805+chazdean@users.noreply.github.com>
@gwyneplaine gwyneplaine mentioned this pull request Feb 14, 2023
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
…erse` (Shopify#7842)

<!--
  ☝️How to write a good PR title:
- Prefix it with [ComponentName] (if applicable), for example: [Button]
  - Start with a verb, for example: Add, Delete, Improve, Fix…
  - Give as much context as necessary and as little as possible
  - Prefix it with [WIP] while it’s a work in progress
-->

### WHY are these changes introduced?

We need `flex-direction: column-reverse` in order to rebuild
`EmptyState`. Adding this to `AlphaStack`

Supports Shopify#7809

<!--
  Context about the problem that’s being addressed.
-->

### WHAT is this pull request doing?

<!--
  Summary of the changes committed.

Before / after screenshots are appreciated for UI changes. Make sure to
include alt text that describes the screenshot.

If you include an animated gif showing your change, wrapping it in a
details tag is recommended. Gifs usually autoplay, which can cause
accessibility issues for people reviewing your PR:

    <details>
      <summary>Summary of your gif(s)</summary>
      <img src="..." alt="Description of what the gif shows">
    </details>
-->

<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

<!--
  Give as much information as needed to experiment with the component
  in the playground.
-->

<details>
<summary>Copy-paste this code in
<code>playground/Playground.tsx</code>:</summary>

```jsx
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}
```

</details>

### 🎩 checklist

- [ ] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [ ] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [ ] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [ ] Updated the component's `README.md` with documentation changes
- [ ] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/polaris@10.15.0

### Minor Changes

- [Shopify#7842](Shopify#7842)
[`49ed527b2`](Shopify@49ed527)
Thanks [@yurm04](https://github.com/yurm04)! - Add flex-direction:
column-reverse to AlphaStack

### Patch Changes

- [Shopify#7851](Shopify#7851)
[`b36f63183`](Shopify@b36f631)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated shadow and
placement of the BulkActions bar for greater visibility

## @shopify/plugin-polaris@0.0.20



## polaris.shopify.com@0.27.1

### Patch Changes

- Updated dependencies
\[[`49ed527b2`](Shopify@49ed527),
[`b36f63183`](Shopify@b36f631)]:
    -   @shopify/polaris@10.15.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants