Skip to content

Conversation

laurkim
Copy link
Contributor

@laurkim laurkim commented Feb 1, 2023

WHY are these changes introduced?

Resolves #8231.
Creating a LegacyCard component that is a duplicate of the existing Card in light of upcoming work to replace this with the AlphaCard component.

WHAT is this pull request doing?

Adds LegacyCard to polaris-react.
Adds LegacyCard page to style guide with examples and prop table.

How to 🎩

🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines

🎩 checklist

@laurkim laurkim self-assigned this Feb 1, 2023
@laurkim laurkim force-pushed the lo/add-legacy-card branch from 9b93031 to 5cfd737 Compare February 1, 2023 18:53
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2023

size-limit report 📦

Path Size
polaris-react-cjs 216.75 KB (+0.37% 🔺)
polaris-react-esm 137.86 KB (+0.43% 🔺)
polaris-react-esnext 192.63 KB (+0.55% 🔺)
polaris-react-css 41.38 KB (+0.85% 🔺)

@laurkim laurkim force-pushed the lo/add-legacy-card branch from 5cfd737 to bd3db91 Compare February 1, 2023 19:09
@laurkim laurkim marked this pull request as ready for review February 1, 2023 19:24
@laurkim laurkim changed the title [Layout foundations] Add LegacyCard [Layout foundations] Add LegacyCard component Feb 1, 2023
Co-authored-by: aveline <aveline@users.noreply.github.com>
@laurkim laurkim force-pushed the lo/add-legacy-card branch from ec6ce53 to 2b642d7 Compare February 1, 2023 20:27
@laurkim laurkim merged commit bb8b551 into main Feb 3, 2023
@laurkim laurkim deleted the lo/add-legacy-card branch February 3, 2023 12:58
laurkim added a commit that referenced this pull request Feb 3, 2023
laurkim pushed a commit that referenced this pull request Feb 3, 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.26.0

### Minor Changes

- [#8240](#8240)
[`31abdab37`](31abdab)
Thanks [@laurkim](https://github.com/laurkim)! - Added `LegacyStack`
component


- [#8238](#8238)
[`bb8b551d4`](bb8b551)
Thanks [@laurkim](https://github.com/laurkim)! - Added `LegacyCard`
component

### Patch Changes

- [#8256](#8256)
[`43776be71`](43776be)
Thanks [@aveline](https://github.com/aveline)! - - Fixed `Bleed` width
behavior
    -   Fixed `Banner` content width


- [#8244](#8244)
[`0ee432500`](0ee4325)
Thanks [@samrose3](https://github.com/samrose3)! - Disallow
text-transform property in Stylelint Polaris

- Updated dependencies
\[[`1b1394d32`](1b1394d)]:
    -   @shopify/polaris-tokens@6.4.0

## @shopify/polaris-tokens@6.4.0

### Minor Changes

- [#8245](#8245)
[`1b1394d32`](1b1394d)
Thanks [@lgriffee](https://github.com/lgriffee)! - Added new z-index
tokens that will be the default in v7.0.0

## @shopify/stylelint-polaris@5.2.0

### Minor Changes

- [#8244](#8244)
[`0ee432500`](0ee4325)
Thanks [@samrose3](https://github.com/samrose3)! - Disallow
text-transform property in Stylelint Polaris

### Patch Changes

- Updated dependencies
\[[`1b1394d32`](1b1394d)]:
    -   @shopify/polaris-tokens@6.4.0

## @shopify/polaris-cli@0.1.2

### Patch Changes

-   Updated dependencies \[]:
    -   @shopify/polaris-migrator@0.11.4

## @shopify/polaris-migrator@0.11.4

### Patch Changes

- Updated dependencies
\[[`1b1394d32`](1b1394d),
[`0ee432500`](0ee4325)]:
    -   @shopify/polaris-tokens@6.4.0
    -   @shopify/stylelint-polaris@5.2.0

## polaris.shopify.com@0.32.0

### Minor Changes

- [#8240](#8240)
[`31abdab37`](31abdab)
Thanks [@laurkim](https://github.com/laurkim)! - Added `LegacyStack`
component


- [#8238](#8238)
[`bb8b551d4`](bb8b551)
Thanks [@laurkim](https://github.com/laurkim)! - Added `LegacyCard`
component

### Patch Changes

- Updated dependencies
\[[`43776be71`](43776be),
[`31abdab37`](31abdab),
[`1b1394d32`](1b1394d),
[`0ee432500`](0ee4325),
[`bb8b551d4`](bb8b551)]:
    -   @shopify/polaris@10.26.0
    -   @shopify/polaris-tokens@6.4.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
### WHY are these changes introduced?

Resolves Shopify#8231.
Creating a `LegacyCard` component that is a duplicate of the existing
`Card` in light of upcoming work to replace this with the `AlphaCard`
component.

### WHAT is this pull request doing?

Adds `LegacyCard` to `polaris-react`.
Adds `LegacyCard` page to style guide with examples and prop table.

<!-- ℹ️ 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)

### 🎩 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
- [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>
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.26.0

### Minor Changes

- [Shopify#8240](Shopify#8240)
[`31abdab37`](Shopify@31abdab)
Thanks [@laurkim](https://github.com/laurkim)! - Added `LegacyStack`
component


- [Shopify#8238](Shopify#8238)
[`bb8b551d4`](Shopify@bb8b551)
Thanks [@laurkim](https://github.com/laurkim)! - Added `LegacyCard`
component

### Patch Changes

- [Shopify#8256](Shopify#8256)
[`43776be71`](Shopify@43776be)
Thanks [@aveline](https://github.com/aveline)! - - Fixed `Bleed` width
behavior
    -   Fixed `Banner` content width


- [Shopify#8244](Shopify#8244)
[`0ee432500`](Shopify@0ee4325)
Thanks [@samrose3](https://github.com/samrose3)! - Disallow
text-transform property in Stylelint Polaris

- Updated dependencies
\[[`1b1394d32`](Shopify@1b1394d)]:
    -   @shopify/polaris-tokens@6.4.0

## @shopify/polaris-tokens@6.4.0

### Minor Changes

- [Shopify#8245](Shopify#8245)
[`1b1394d32`](Shopify@1b1394d)
Thanks [@lgriffee](https://github.com/lgriffee)! - Added new z-index
tokens that will be the default in v7.0.0

## @shopify/stylelint-polaris@5.2.0

### Minor Changes

- [Shopify#8244](Shopify#8244)
[`0ee432500`](Shopify@0ee4325)
Thanks [@samrose3](https://github.com/samrose3)! - Disallow
text-transform property in Stylelint Polaris

### Patch Changes

- Updated dependencies
\[[`1b1394d32`](Shopify@1b1394d)]:
    -   @shopify/polaris-tokens@6.4.0

## @shopify/polaris-cli@0.1.2

### Patch Changes

-   Updated dependencies \[]:
    -   @shopify/polaris-migrator@0.11.4

## @shopify/polaris-migrator@0.11.4

### Patch Changes

- Updated dependencies
\[[`1b1394d32`](Shopify@1b1394d),
[`0ee432500`](Shopify@0ee4325)]:
    -   @shopify/polaris-tokens@6.4.0
    -   @shopify/stylelint-polaris@5.2.0

## polaris.shopify.com@0.32.0

### Minor Changes

- [Shopify#8240](Shopify#8240)
[`31abdab37`](Shopify@31abdab)
Thanks [@laurkim](https://github.com/laurkim)! - Added `LegacyStack`
component


- [Shopify#8238](Shopify#8238)
[`bb8b551d4`](Shopify@bb8b551)
Thanks [@laurkim](https://github.com/laurkim)! - Added `LegacyCard`
component

### Patch Changes

- Updated dependencies
\[[`43776be71`](Shopify@43776be),
[`31abdab37`](Shopify@31abdab),
[`1b1394d32`](Shopify@1b1394d),
[`0ee432500`](Shopify@0ee4325),
[`bb8b551d4`](Shopify@bb8b551)]:
    -   @shopify/polaris@10.26.0
    -   @shopify/polaris-tokens@6.4.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.

[Layout foundations] Add LegacyCard that is duplicate of Card
3 participants