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

[DatePicker] Consolidate se23 logic and styles #10120

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

sophschneider
Copy link
Contributor

@sophschneider sophschneider commented Aug 18, 2023

WHY are these changes introduced?

Fixes #9931

WHAT is this pull request doing?

Consolidate se23 logic and styles for DatePicker Component
Add story delay for datepicker since the "All" test hasn't been rendering in time on some PRs

How to 🎩

Compare production and this PR's chromatic storybook to make sure styles are the same

Production
This PR

@sophschneider sophschneider marked this pull request as ready for review August 18, 2023 19:31
@@ -4,6 +4,9 @@ import {Box, Card, DatePicker, BlockStack} from '@shopify/polaris';

export default {
component: DatePicker,
parameters: {
chromatic: {delay: 300},
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 delay because I noticed some chromatic runs on unrelated PRs were taking too long to load the last date picker in the All story

Copy link
Contributor

@laurkim laurkim left a comment

Choose a reason for hiding this comment

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

💯

@sophschneider sophschneider merged commit 1ff9918 into next Aug 21, 2023
13 checks passed
@sophschneider sophschneider deleted the sophie/clean-up-date-picker branch August 21, 2023 15:11
sophschneider added a commit that referenced this pull request Sep 19, 2023
### WHY are these changes introduced?

Fixes #9931

### WHAT is this pull request doing?

Consolidate se23 logic and styles for `DatePicker` Component
Add story delay for datepicker since the "All" test hasn't been
rendering in time on some PRs

### How to 🎩
Compare production and this PR's chromatic storybook to make sure styles
are the same


[Production](https://storybook.polaris.shopify.com/?path=/story/all-components-datepicker--all&globals=polarisSummerEditions2023:true)
[This
PR](https://5d559397bae39100201eedc1-pxozkstezh.chromatic.com/?path=/story/all-components-datepicker--all)
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
### WHY are these changes introduced?

Fixes Shopify#9931

### WHAT is this pull request doing?

Consolidate se23 logic and styles for `DatePicker` Component
Add story delay for datepicker since the "All" test hasn't been
rendering in time on some PRs

### How to 🎩
Compare production and this PR's chromatic storybook to make sure styles
are the same


[Production](https://storybook.polaris.shopify.com/?path=/story/all-components-datepicker--all&globals=polarisSummerEditions2023:true)
[This
PR](https://5d559397bae39100201eedc1-pxozkstezh.chromatic.com/?path=/story/all-components-datepicker--all)
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