Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Page] Consolidate se23 styles and logic #10187

Merged
merged 3 commits into from
Aug 23, 2023
Merged

[Page] Consolidate se23 styles and logic #10187

merged 3 commits into from
Aug 23, 2023

Conversation

laurkim
Copy link
Contributor

@laurkim laurkim commented Aug 23, 2023

WHY are these changes introduced?

Resolves #9954, #10202.

WHAT is this pull request doing?

Consolidates se23 beta styles and logic for Page.
Removes divider prop as the styles were modified to reset pre-uplift styles in an earlier PR.

How to 🎩

Storybook
Prod Storybook

🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines

🎩 checklist

@laurkim laurkim self-assigned this Aug 23, 2023
Comment on lines -18 to -19
/** Displays a divider between the page header and the page content */
divider?: boolean;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this prop as the styles were modified with uplift in a previous PR and the class is just overriding pre-uplift spacing back to 0.

Copy link
Contributor

Choose a reason for hiding this comment

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

do you know if we are tracking prop deprecations for v12 anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added divider prop removal to tasklist here 👍

&:hover,
&:active,
&:focus {
border: var(--p-border-width-1) solid var(--p-color-border-strong) !important;
Copy link
Contributor Author

@laurkim laurkim Aug 23, 2023

Choose a reason for hiding this comment

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

Removed this due to specificity issues. Verified that without this, styles for interactive states look as expected.

Comment on lines -63 to -65
- fileName: page-with-divider.tsx
title: With divider
description: Use when the page needs visual separation between the page header and the content.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yurm04 I had to remove this example to resolve build issues with the removed prop

@laurkim laurkim marked this pull request as ready for review August 23, 2023 17:29
@laurkim laurkim mentioned this pull request Aug 23, 2023
@laurkim laurkim merged commit 8755b46 into next Aug 23, 2023
16 checks passed
@laurkim laurkim deleted the lo/rm-uplift-page branch August 23, 2023 18:27
@laurkim laurkim linked an issue Aug 24, 2023 that may be closed by this pull request
laurkim added a commit that referenced this pull request Aug 25, 2023
### WHY are these changes introduced?

Resolves #10035.

Updates existing `tall-chickens-repeat` changeset with all the component
consolidation work (included any in progress/ready for review/up
next/backlog PRs as well).

Adds changesets for
[OptionList](#10177) `optionRole`
and [Page](#10187) `divider` prop
removal.
sam-b-rose added a commit that referenced this pull request Aug 25, 2023
* next: (87 commits)
  [ButtonGroup] Removed `segmented` boolean prop and replaced with `variant` (#9997)
  [LegacyTabs] Consolidate se23 styles and logic (#10231)
  [v12] Update changesets (#10232)
  [LegacyFilters] Consolidate se23 styles and logic (#10217)
  [Banner] Change status prop to tone (#10206)
  Replace icon highlight color in box stories (#10226)
  [TopBar] Consolidate se23 styles and logic (#10221)
  [Filters] consolidate se23 logic and styles (#10178)
  [Icon] Update props (#10220)
  [ButtonGroup] Update variant plain prop name (#10222)
  [Button] Remove connectedDisclosure (#10182)
  [LegacyCard] Consolidate se23 styles and logic (#10207)
  [Navigation] Consolidate se23 logic and styles (#10213)
  [Frame][ContextualSaveBar] Consolidate se23 styles and logic (#10196)
  [OptionList] consolidate se23 styles and logic  (#10177)
  [Page] Consolidate se23 styles and logic (#10187)
  [DataTable] Consolidate conditional logic (#10169)
  [Thumbnail] Consolidate conditional logic (#10171)
  [ResourceItem] Consolidate conditional logic (#10172)
  [FullscreenBar] Consolidate conditional logic (#10173)
  ...
sam-b-rose added a commit that referenced this pull request Aug 25, 2023
* next: (87 commits)
  [ButtonGroup] Removed `segmented` boolean prop and replaced with `variant` (#9997)
  [LegacyTabs] Consolidate se23 styles and logic (#10231)
  [v12] Update changesets (#10232)
  [LegacyFilters] Consolidate se23 styles and logic (#10217)
  [Banner] Change status prop to tone (#10206)
  Replace icon highlight color in box stories (#10226)
  [TopBar] Consolidate se23 styles and logic (#10221)
  [Filters] consolidate se23 logic and styles (#10178)
  [Icon] Update props (#10220)
  [ButtonGroup] Update variant plain prop name (#10222)
  [Button] Remove connectedDisclosure (#10182)
  [LegacyCard] Consolidate se23 styles and logic (#10207)
  [Navigation] Consolidate se23 logic and styles (#10213)
  [Frame][ContextualSaveBar] Consolidate se23 styles and logic (#10196)
  [OptionList] consolidate se23 styles and logic  (#10177)
  [Page] Consolidate se23 styles and logic (#10187)
  [DataTable] Consolidate conditional logic (#10169)
  [Thumbnail] Consolidate conditional logic (#10171)
  [ResourceItem] Consolidate conditional logic (#10172)
  [FullscreenBar] Consolidate conditional logic (#10173)
  ...
sophschneider pushed a commit that referenced this pull request Sep 19, 2023
sophschneider pushed a commit that referenced this pull request Sep 19, 2023
### WHY are these changes introduced?

Resolves #10035.

Updates existing `tall-chickens-repeat` changeset with all the component
consolidation work (included any in progress/ready for review/up
next/backlog PRs as well).

Adds changesets for
[OptionList](#10177) `optionRole`
and [Page](#10187) `divider` prop
removal.
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
### WHY are these changes introduced?

Resolves Shopify#9954.

### WHAT is this pull request doing?

Consolidates se23 beta styles and logic for `Page`.
Removes `divider` prop as the styles were modified to reset pre-uplift
styles in an earlier [PR](Shopify#9537).

### How to 🎩

[Storybook](https://5d559397bae39100201eedc1-rojuobnovi.chromatic.com/?path=/story/all-components-page--default)
[Prod
Storybook](https://storybook.polaris.shopify.com/?path=/story/all-components-page--default&globals=polarisSummerEditions2023:true)

🖥 [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
- [ ] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
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.

[Page] Remove divider prop
2 participants