Skip to content

Conversation

@laurkim
Copy link
Contributor

@laurkim laurkim commented Oct 14, 2022

WHY are these changes introduced?

Related to 7565.

WHAT is this pull request doing?

Rebuilds the following components to use our layout primitives.

How to 🎩

Spin instance
Storybook

🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines

🎩 checklist

@laurkim laurkim force-pushed the layout-components-beta branch from 88856f7 to e45e174 Compare October 14, 2022 14:56
@laurkim laurkim changed the title [Layout foundations] Beta release [Layout foundations] Update existing components to use new layout primitives Oct 14, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 14, 2022

size-limit report 📦

Path Size
polaris-react-cjs 211.34 KB (+0.04% 🔺)
polaris-react-esm 136.54 KB (+0.06% 🔺)
polaris-react-esnext 191.72 KB (-0.26% 🔽)
polaris-react-css 41.74 KB (-0.77% 🔽)

@laurkim laurkim closed this Oct 14, 2022
@laurkim laurkim reopened this Oct 14, 2022
@laurkim laurkim changed the title [Layout foundations] Update existing components to use new layout primitives [Layout foundations] First batch of updates Oct 14, 2022
@laurkim laurkim force-pushed the layout-components-beta branch 3 times, most recently from dfb1279 to 3edf54e Compare October 28, 2022 13:11
@laurkim laurkim changed the title [Layout foundations] First batch of updates [Layout foundations] First batch of layout rebuild updates Oct 31, 2022
@laurkim laurkim changed the title [Layout foundations] First batch of layout rebuild updates [Layout foundations] First release of components rebuilt with layout primitives Nov 22, 2022
@laurkim laurkim changed the title [Layout foundations] First release of components rebuilt with layout primitives [Layout foundations][Batch 1] Rebuild components with layout primitives Nov 22, 2022
@laurkim laurkim force-pushed the layout-components-beta branch from 8e25493 to 54cdf64 Compare November 23, 2022 14:23
@chazdean chazdean force-pushed the layout-components-beta branch from eebe9a8 to eca95d5 Compare November 25, 2022 15:02
@laurkim laurkim force-pushed the layout-components-beta branch 2 times, most recently from cdd6906 to 6645d8f Compare December 5, 2022 16:36
@laurkim
Copy link
Contributor Author

laurkim commented Dec 5, 2022

/snapit

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2022

🫰✨ Thanks @laurkim! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221205170752
yarn add @shopify/polaris-icons@0.0.0-snapshot-release-20221205170752
yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20221205170752
yarn add @shopify/polaris@0.0.0-snapshot-release-20221205170752
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20221205170752

@laurkim laurkim marked this pull request as ready for review December 5, 2022 17:34
laurkim and others added 14 commits December 9, 2022 08:22
Resolves #7340.
Refactors `Modal` and its child components to use our layout primitives.

[Storybook
URL](https://5d559397bae39100201eedc1-nrruulmwsh.chromatic.com/?path=/story/all-components-modal--default).
Refactors `Modal`, `Modal.Section`, `Modal.Header`, and `Modal.Footer`
to use our layout primitives and remove css.

[Storybook
URL](https://5d559397bae39100201eedc1-nrruulmwsh.chromatic.com/?path=/story/all-components-modal--default).
I've tophatted all of our stories as well as the UI for all of our
breakpoints.

🖥 [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)

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] 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
I'm still of the opinion that our layout components should have some
defaults and the ones we have on bleed may not be right but we need to
use it in more places to figure out what those defaults should be.

For now, this fixes regressions to Banner that were introduced in
#7644
Resolves #7354

- Refactored `ChoiceList` to use primitive Layout components
- Added support for `legend` element to `Box`
- Add support for `fieldset` element to `AlphaStack`

There should be no visual changes.

Co-authored-by: Lo Kim <lo.kim@shopify.com>
Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
@laurkim laurkim force-pushed the layout-components-beta branch from fe742a1 to e8d2e99 Compare December 9, 2022 13:22
@laurkim
Copy link
Contributor Author

laurkim commented Dec 9, 2022

/snapit

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2022

🫰✨ Thanks @laurkim! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221209132518
yarn add @shopify/polaris@0.0.0-snapshot-release-20221209132518

@laurkim
Copy link
Contributor Author

laurkim commented Dec 16, 2022

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @laurkim! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221216121434
yarn add @shopify/polaris@0.0.0-snapshot-release-20221216121434

@aveline aveline merged commit 7ffd87f into main Jan 4, 2023
@aveline aveline deleted the layout-components-beta branch January 4, 2023 15:21
aveline pushed a commit that referenced this pull request Jan 4, 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.17.0

### Minor Changes

- [#7408](#7408)
[`7ffd87f7d`](7ffd87f)
Thanks [@laurkim](https://github.com/laurkim)! - - Refactored
`ChoiceList` to use primitive Layout components
    -   Added support for `legend` element to `Box`
    -   Added support for `fieldset` element to `AlphaStack`


- [#7978](#7978)
[`fb0ed3805`](fb0ed38)
Thanks [@kyledurand](https://github.com/kyledurand)! - Added
`printHidden` prop to `Box`


- [#7408](#7408)
[`7ffd87f7d`](7ffd87f)
Thanks [@laurkim](https://github.com/laurkim)! - Updated `Banner`
component to use new layout primitives


- [#7408](#7408)
[`7ffd87f7d`](7ffd87f)
Thanks [@laurkim](https://github.com/laurkim)! - Refactored `Modal` and
its children components to use layout primitives


- [#7963](#7963)
[`f94cf1496`](f94cf14)
Thanks [@aveline](https://github.com/aveline)! - Updated `AlphaStack`
docs for `align` prop


- [#7408](#7408)
[`7ffd87f7d`](7ffd87f)
Thanks [@laurkim](https://github.com/laurkim)! - Refactored
`AccountConnection` to use new layout primitives


- [#7915](#7915)
[`81fd3fd5b`](81fd3fd)
Thanks [@melaniedamilig](https://github.com/melaniedamilig)! - - Added
the `onAnimationEnd` prop to `Collapsible`
- Fixed a bug in `Filters` where focus was moved to collapsed filter
contents before the `Collapsible` animation ended


- [#7956](#7956)
[`30cdd2e23`](30cdd2e)
Thanks [@aveline](https://github.com/aveline)! - Updated `Box` allowable
aria roles


- [#7939](#7939)
[`8b31e3983`](8b31e39)
Thanks [@acidio](https://github.com/acidio)! - Added support for
`spacing` prop to List component allowing for a more compact list

### Patch Changes

- [#7925](#7925)
[`4e33e1ced`](4e33e1c)
Thanks [@jas7457](https://github.com/jas7457)! - Updated `IndexTable`
and `ProgressBar` to no longer log errors about deprecated
`React.findDOMNode`

## @shopify/plugin-polaris@0.0.23

### Patch Changes

- Updated dependencies
\[[`bfb537780`](bfb5377)]:
    -   @shopify/polaris-migrator@0.10.2

## @shopify/polaris-migrator@0.10.2

### Patch Changes

- [#7979](#7979)
[`bfb537780`](bfb5377)
Thanks [@samrose3](https://github.com/samrose3)! - Early exit if target
function isn't present for the scss-replace-duration and
scss-replace-easing migrations

- Updated dependencies
\[[`af0ceb8c6`](af0ceb8),
[`e7712e7a5`](e7712e7)]:
    -   @shopify/stylelint-polaris@5.0.2

## @shopify/stylelint-polaris@5.0.2

### Patch Changes

- [#7954](#7954)
[`af0ceb8c6`](af0ceb8)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Use
RegExp pattern to exclude reporting invalid scope disables and address
memory issues


- [#7919](#7919)
[`e7712e7a5`](e7712e7)
Thanks [@qt314](https://github.com/qt314)! - Deduped converage rules
that were in multiple categories

## polaris.shopify.com@0.28.0

### Minor Changes

- [#7963](#7963)
[`f94cf1496`](f94cf14)
Thanks [@aveline](https://github.com/aveline)! - Updated `AlphaStack`
docs for `align` prop

### Patch Changes

- [#7921](#7921)
[`502530597`](5025305)
Thanks [@martenbjork](https://github.com/martenbjork)! - Fixed border
radius of component images in the overview page.

- Updated dependencies
\[[`7ffd87f7d`](7ffd87f),
[`fb0ed3805`](fb0ed38),
[`7ffd87f7d`](7ffd87f),
[`7ffd87f7d`](7ffd87f),
[`f94cf1496`](f94cf14),
[`4e33e1ced`](4e33e1c),
[`7ffd87f7d`](7ffd87f),
[`81fd3fd5b`](81fd3fd),
[`30cdd2e23`](30cdd2e),
[`8b31e3983`](8b31e39)]:
    -   @shopify/polaris@10.17.0

Co-authored-by: github-actions[bot] <github-actions[bot]@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
…es (Shopify#7408)

### WHY are these changes introduced?

Related to [7565](Shopify#7565).

### WHAT is this pull request doing?

Rebuilds the following components to use our layout primitives.
- `ChoiceList` Shopify#7354
- `Modal` Shopify#7340 
- `AccountConnection` Shopify#7341 
- `Banner` Shopify#7358 

### How to 🎩

[Spin
instance](https://admin.web.layout-rebuild-batch-1-b.lo-kim.us.spin.dev/store/shop1)
[Storybook](https://5d559397bae39100201eedc1-cshuopiodd.chromatic.com/)

🖥 [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)

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] 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
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide

Co-authored-by: aveline <aveline@users.noreply.github.com>
Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
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.17.0

### Minor Changes

- [Shopify#7408](Shopify#7408)
[`7ffd87f7d`](Shopify@7ffd87f)
Thanks [@laurkim](https://github.com/laurkim)! - - Refactored
`ChoiceList` to use primitive Layout components
    -   Added support for `legend` element to `Box`
    -   Added support for `fieldset` element to `AlphaStack`


- [Shopify#7978](Shopify#7978)
[`fb0ed3805`](Shopify@fb0ed38)
Thanks [@kyledurand](https://github.com/kyledurand)! - Added
`printHidden` prop to `Box`


- [Shopify#7408](Shopify#7408)
[`7ffd87f7d`](Shopify@7ffd87f)
Thanks [@laurkim](https://github.com/laurkim)! - Updated `Banner`
component to use new layout primitives


- [Shopify#7408](Shopify#7408)
[`7ffd87f7d`](Shopify@7ffd87f)
Thanks [@laurkim](https://github.com/laurkim)! - Refactored `Modal` and
its children components to use layout primitives


- [Shopify#7963](Shopify#7963)
[`f94cf1496`](Shopify@f94cf14)
Thanks [@aveline](https://github.com/aveline)! - Updated `AlphaStack`
docs for `align` prop


- [Shopify#7408](Shopify#7408)
[`7ffd87f7d`](Shopify@7ffd87f)
Thanks [@laurkim](https://github.com/laurkim)! - Refactored
`AccountConnection` to use new layout primitives


- [Shopify#7915](Shopify#7915)
[`81fd3fd5b`](Shopify@81fd3fd)
Thanks [@melaniedamilig](https://github.com/melaniedamilig)! - - Added
the `onAnimationEnd` prop to `Collapsible`
- Fixed a bug in `Filters` where focus was moved to collapsed filter
contents before the `Collapsible` animation ended


- [Shopify#7956](Shopify#7956)
[`30cdd2e23`](Shopify@30cdd2e)
Thanks [@aveline](https://github.com/aveline)! - Updated `Box` allowable
aria roles


- [Shopify#7939](Shopify#7939)
[`8b31e3983`](Shopify@8b31e39)
Thanks [@acidio](https://github.com/acidio)! - Added support for
`spacing` prop to List component allowing for a more compact list

### Patch Changes

- [Shopify#7925](Shopify#7925)
[`4e33e1ced`](Shopify@4e33e1c)
Thanks [@jas7457](https://github.com/jas7457)! - Updated `IndexTable`
and `ProgressBar` to no longer log errors about deprecated
`React.findDOMNode`

## @shopify/plugin-polaris@0.0.23

### Patch Changes

- Updated dependencies
\[[`bfb537780`](Shopify@bfb5377)]:
    -   @shopify/polaris-migrator@0.10.2

## @shopify/polaris-migrator@0.10.2

### Patch Changes

- [Shopify#7979](Shopify#7979)
[`bfb537780`](Shopify@bfb5377)
Thanks [@samrose3](https://github.com/samrose3)! - Early exit if target
function isn't present for the scss-replace-duration and
scss-replace-easing migrations

- Updated dependencies
\[[`af0ceb8c6`](Shopify@af0ceb8),
[`e7712e7a5`](Shopify@e7712e7)]:
    -   @shopify/stylelint-polaris@5.0.2

## @shopify/stylelint-polaris@5.0.2

### Patch Changes

- [Shopify#7954](Shopify#7954)
[`af0ceb8c6`](Shopify@af0ceb8)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Use
RegExp pattern to exclude reporting invalid scope disables and address
memory issues


- [Shopify#7919](Shopify#7919)
[`e7712e7a5`](Shopify@e7712e7)
Thanks [@qt314](https://github.com/qt314)! - Deduped converage rules
that were in multiple categories

## polaris.shopify.com@0.28.0

### Minor Changes

- [Shopify#7963](Shopify#7963)
[`f94cf1496`](Shopify@f94cf14)
Thanks [@aveline](https://github.com/aveline)! - Updated `AlphaStack`
docs for `align` prop

### Patch Changes

- [Shopify#7921](Shopify#7921)
[`502530597`](Shopify@5025305)
Thanks [@martenbjork](https://github.com/martenbjork)! - Fixed border
radius of component images in the overview page.

- Updated dependencies
\[[`7ffd87f7d`](Shopify@7ffd87f),
[`fb0ed3805`](Shopify@fb0ed38),
[`7ffd87f7d`](Shopify@7ffd87f),
[`7ffd87f7d`](Shopify@7ffd87f),
[`f94cf1496`](Shopify@f94cf14),
[`4e33e1ced`](Shopify@4e33e1c),
[`7ffd87f7d`](Shopify@7ffd87f),
[`81fd3fd5b`](Shopify@81fd3fd),
[`30cdd2e23`](Shopify@30cdd2e),
[`8b31e3983`](Shopify@8b31e39)]:
    -   @shopify/polaris@10.17.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.

8 participants