-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Preload inter on Storybook #10048
Merged
Merged
Preload inter on Storybook #10048
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 tasks
sophschneider
force-pushed
the
sophie/storybook-inter-font-preload
branch
from
August 14, 2023 18:41
c2c5c75
to
a33b39a
Compare
sophschneider
requested review from
sam-b-rose,
jesstelford,
gwyneplaine and
laurkim
August 14, 2023 19:13
sam-b-rose
approved these changes
Aug 14, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you for the Storybook font fix! Just one comment 👍
sophschneider
force-pushed
the
sophie/storybook-inter-font-preload
branch
from
August 14, 2023 19:36
d5aeebd
to
a33b39a
Compare
sophschneider
added
the
🤖Skip Changelog
Causes CI to ignore changelog update check.
label
Aug 14, 2023
sophschneider
added a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? Resolves #10038 ### WHAT is this pull request doing? * Preloads the `inter` font to avoid flakey width/postion calculations in chromatic snapshots (more context in the issue) * Run chromatic in CI when `polaris-react/.storybook` changes * Accept chromatic baseline UI snapshots using inter > Note: I think inter now shows when the beta flag is off as well but this is ok as we are on the `next` branch and in the process of removing the beta flag ### How to 🎩 #### To duplicate the original bug: 1. Go to [this story](https://storybook.polaris.shopify.com/?path=/story/all-components-legacycard--with-separate-header&globals=polarisSummerEditions2023:true) 2. Make sure the cache is empty (empty cache and hard reload) 3. Refresh (or rerender) to see popover overlay shift <details> <summary>Replicate Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/53ed5e19-7c8d-4ee4-ab95-81a2c08e279d </details> #### To tophat fix: 1. Go to [this story on this PR's chromatic](https://5d559397bae39100201eedc1-qhkfhdyjuo.chromatic.com/?path=/story/all-components-legacycard--with-separate-header) 2. Repeat steps 2-3 above <details> <summary>Fixed Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/de28ff59-84ab-46bd-b28a-31dbede8f001 </details>
sophschneider
added a commit
that referenced
this pull request
Aug 15, 2023
This reverts commit d28e1e7.
This was referenced Aug 15, 2023
sophschneider
added a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? reverts the preload changes in #10048 since storybook is now loading the system font instead of inter
sam-b-rose
pushed a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? Resolves #10038 ### WHAT is this pull request doing? * Preloads the `inter` font to avoid flakey width/postion calculations in chromatic snapshots (more context in the issue) * Run chromatic in CI when `polaris-react/.storybook` changes * Accept chromatic baseline UI snapshots using inter > Note: I think inter now shows when the beta flag is off as well but this is ok as we are on the `next` branch and in the process of removing the beta flag ### How to 🎩 #### To duplicate the original bug: 1. Go to [this story](https://storybook.polaris.shopify.com/?path=/story/all-components-legacycard--with-separate-header&globals=polarisSummerEditions2023:true) 2. Make sure the cache is empty (empty cache and hard reload) 3. Refresh (or rerender) to see popover overlay shift <details> <summary>Replicate Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/53ed5e19-7c8d-4ee4-ab95-81a2c08e279d </details> #### To tophat fix: 1. Go to [this story on this PR's chromatic](https://5d559397bae39100201eedc1-qhkfhdyjuo.chromatic.com/?path=/story/all-components-legacycard--with-separate-header) 2. Repeat steps 2-3 above <details> <summary>Fixed Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/de28ff59-84ab-46bd-b28a-31dbede8f001 </details>
sam-b-rose
pushed a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? reverts the preload changes in #10048 since storybook is now loading the system font instead of inter
sam-b-rose
pushed a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? Resolves #10038 ### WHAT is this pull request doing? * Preloads the `inter` font to avoid flakey width/postion calculations in chromatic snapshots (more context in the issue) * Run chromatic in CI when `polaris-react/.storybook` changes * Accept chromatic baseline UI snapshots using inter > Note: I think inter now shows when the beta flag is off as well but this is ok as we are on the `next` branch and in the process of removing the beta flag ### How to 🎩 #### To duplicate the original bug: 1. Go to [this story](https://storybook.polaris.shopify.com/?path=/story/all-components-legacycard--with-separate-header&globals=polarisSummerEditions2023:true) 2. Make sure the cache is empty (empty cache and hard reload) 3. Refresh (or rerender) to see popover overlay shift <details> <summary>Replicate Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/53ed5e19-7c8d-4ee4-ab95-81a2c08e279d </details> #### To tophat fix: 1. Go to [this story on this PR's chromatic](https://5d559397bae39100201eedc1-qhkfhdyjuo.chromatic.com/?path=/story/all-components-legacycard--with-separate-header) 2. Repeat steps 2-3 above <details> <summary>Fixed Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/de28ff59-84ab-46bd-b28a-31dbede8f001 </details>
sam-b-rose
pushed a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? reverts the preload changes in #10048 since storybook is now loading the system font instead of inter
sam-b-rose
pushed a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? Resolves #10038 ### WHAT is this pull request doing? * Preloads the `inter` font to avoid flakey width/postion calculations in chromatic snapshots (more context in the issue) * Run chromatic in CI when `polaris-react/.storybook` changes * Accept chromatic baseline UI snapshots using inter > Note: I think inter now shows when the beta flag is off as well but this is ok as we are on the `next` branch and in the process of removing the beta flag ### How to 🎩 #### To duplicate the original bug: 1. Go to [this story](https://storybook.polaris.shopify.com/?path=/story/all-components-legacycard--with-separate-header&globals=polarisSummerEditions2023:true) 2. Make sure the cache is empty (empty cache and hard reload) 3. Refresh (or rerender) to see popover overlay shift <details> <summary>Replicate Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/53ed5e19-7c8d-4ee4-ab95-81a2c08e279d </details> #### To tophat fix: 1. Go to [this story on this PR's chromatic](https://5d559397bae39100201eedc1-qhkfhdyjuo.chromatic.com/?path=/story/all-components-legacycard--with-separate-header) 2. Repeat steps 2-3 above <details> <summary>Fixed Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/de28ff59-84ab-46bd-b28a-31dbede8f001 </details>
sam-b-rose
pushed a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? reverts the preload changes in #10048 since storybook is now loading the system font instead of inter
sam-b-rose
pushed a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? Resolves #10038 ### WHAT is this pull request doing? * Preloads the `inter` font to avoid flakey width/postion calculations in chromatic snapshots (more context in the issue) * Run chromatic in CI when `polaris-react/.storybook` changes * Accept chromatic baseline UI snapshots using inter > Note: I think inter now shows when the beta flag is off as well but this is ok as we are on the `next` branch and in the process of removing the beta flag ### How to 🎩 #### To duplicate the original bug: 1. Go to [this story](https://storybook.polaris.shopify.com/?path=/story/all-components-legacycard--with-separate-header&globals=polarisSummerEditions2023:true) 2. Make sure the cache is empty (empty cache and hard reload) 3. Refresh (or rerender) to see popover overlay shift <details> <summary>Replicate Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/53ed5e19-7c8d-4ee4-ab95-81a2c08e279d </details> #### To tophat fix: 1. Go to [this story on this PR's chromatic](https://5d559397bae39100201eedc1-qhkfhdyjuo.chromatic.com/?path=/story/all-components-legacycard--with-separate-header) 2. Repeat steps 2-3 above <details> <summary>Fixed Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/de28ff59-84ab-46bd-b28a-31dbede8f001 </details>
sam-b-rose
pushed a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? reverts the preload changes in #10048 since storybook is now loading the system font instead of inter
sam-b-rose
pushed a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? Resolves #10038 ### WHAT is this pull request doing? * Preloads the `inter` font to avoid flakey width/postion calculations in chromatic snapshots (more context in the issue) * Run chromatic in CI when `polaris-react/.storybook` changes * Accept chromatic baseline UI snapshots using inter > Note: I think inter now shows when the beta flag is off as well but this is ok as we are on the `next` branch and in the process of removing the beta flag ### How to 🎩 #### To duplicate the original bug: 1. Go to [this story](https://storybook.polaris.shopify.com/?path=/story/all-components-legacycard--with-separate-header&globals=polarisSummerEditions2023:true) 2. Make sure the cache is empty (empty cache and hard reload) 3. Refresh (or rerender) to see popover overlay shift <details> <summary>Replicate Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/53ed5e19-7c8d-4ee4-ab95-81a2c08e279d </details> #### To tophat fix: 1. Go to [this story on this PR's chromatic](https://5d559397bae39100201eedc1-qhkfhdyjuo.chromatic.com/?path=/story/all-components-legacycard--with-separate-header) 2. Repeat steps 2-3 above <details> <summary>Fixed Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/de28ff59-84ab-46bd-b28a-31dbede8f001 </details>
sam-b-rose
pushed a commit
that referenced
this pull request
Aug 15, 2023
### WHY are these changes introduced? reverts the preload changes in #10048 since storybook is now loading the system font instead of inter
kyledurand
pushed a commit
that referenced
this pull request
Aug 16, 2023
### WHY are these changes introduced? Resolves #10038 ### WHAT is this pull request doing? * Preloads the `inter` font to avoid flakey width/postion calculations in chromatic snapshots (more context in the issue) * Run chromatic in CI when `polaris-react/.storybook` changes * Accept chromatic baseline UI snapshots using inter > Note: I think inter now shows when the beta flag is off as well but this is ok as we are on the `next` branch and in the process of removing the beta flag ### How to 🎩 #### To duplicate the original bug: 1. Go to [this story](https://storybook.polaris.shopify.com/?path=/story/all-components-legacycard--with-separate-header&globals=polarisSummerEditions2023:true) 2. Make sure the cache is empty (empty cache and hard reload) 3. Refresh (or rerender) to see popover overlay shift <details> <summary>Replicate Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/53ed5e19-7c8d-4ee4-ab95-81a2c08e279d </details> #### To tophat fix: 1. Go to [this story on this PR's chromatic](https://5d559397bae39100201eedc1-qhkfhdyjuo.chromatic.com/?path=/story/all-components-legacycard--with-separate-header) 2. Repeat steps 2-3 above <details> <summary>Fixed Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/de28ff59-84ab-46bd-b28a-31dbede8f001 </details>
kyledurand
pushed a commit
that referenced
this pull request
Aug 16, 2023
### WHY are these changes introduced? reverts the preload changes in #10048 since storybook is now loading the system font instead of inter
kyledurand
pushed a commit
that referenced
this pull request
Aug 17, 2023
### WHY are these changes introduced? Resolves #10038 ### WHAT is this pull request doing? * Preloads the `inter` font to avoid flakey width/postion calculations in chromatic snapshots (more context in the issue) * Run chromatic in CI when `polaris-react/.storybook` changes * Accept chromatic baseline UI snapshots using inter > Note: I think inter now shows when the beta flag is off as well but this is ok as we are on the `next` branch and in the process of removing the beta flag ### How to 🎩 #### To duplicate the original bug: 1. Go to [this story](https://storybook.polaris.shopify.com/?path=/story/all-components-legacycard--with-separate-header&globals=polarisSummerEditions2023:true) 2. Make sure the cache is empty (empty cache and hard reload) 3. Refresh (or rerender) to see popover overlay shift <details> <summary>Replicate Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/53ed5e19-7c8d-4ee4-ab95-81a2c08e279d </details> #### To tophat fix: 1. Go to [this story on this PR's chromatic](https://5d559397bae39100201eedc1-qhkfhdyjuo.chromatic.com/?path=/story/all-components-legacycard--with-separate-header) 2. Repeat steps 2-3 above <details> <summary>Fixed Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/de28ff59-84ab-46bd-b28a-31dbede8f001 </details>
kyledurand
pushed a commit
that referenced
this pull request
Aug 17, 2023
### WHY are these changes introduced? reverts the preload changes in #10048 since storybook is now loading the system font instead of inter
sophschneider
added a commit
that referenced
this pull request
Sep 19, 2023
### WHY are these changes introduced? Resolves #10038 ### WHAT is this pull request doing? * Preloads the `inter` font to avoid flakey width/postion calculations in chromatic snapshots (more context in the issue) * Run chromatic in CI when `polaris-react/.storybook` changes * Accept chromatic baseline UI snapshots using inter > Note: I think inter now shows when the beta flag is off as well but this is ok as we are on the `next` branch and in the process of removing the beta flag ### How to 🎩 #### To duplicate the original bug: 1. Go to [this story](https://storybook.polaris.shopify.com/?path=/story/all-components-legacycard--with-separate-header&globals=polarisSummerEditions2023:true) 2. Make sure the cache is empty (empty cache and hard reload) 3. Refresh (or rerender) to see popover overlay shift <details> <summary>Replicate Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/53ed5e19-7c8d-4ee4-ab95-81a2c08e279d </details> #### To tophat fix: 1. Go to [this story on this PR's chromatic](https://5d559397bae39100201eedc1-qhkfhdyjuo.chromatic.com/?path=/story/all-components-legacycard--with-separate-header) 2. Repeat steps 2-3 above <details> <summary>Fixed Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/de28ff59-84ab-46bd-b28a-31dbede8f001 </details>
sophschneider
added a commit
that referenced
this pull request
Sep 19, 2023
### WHY are these changes introduced? reverts the preload changes in #10048 since storybook is now loading the system font instead of inter
Merged
AnnaCheba
pushed a commit
to AnnaCheba/polaris
that referenced
this pull request
Apr 22, 2024
### WHY are these changes introduced? Resolves Shopify#10038 ### WHAT is this pull request doing? * Preloads the `inter` font to avoid flakey width/postion calculations in chromatic snapshots (more context in the issue) * Run chromatic in CI when `polaris-react/.storybook` changes * Accept chromatic baseline UI snapshots using inter > Note: I think inter now shows when the beta flag is off as well but this is ok as we are on the `next` branch and in the process of removing the beta flag ### How to 🎩 #### To duplicate the original bug: 1. Go to [this story](https://storybook.polaris.shopify.com/?path=/story/all-components-legacycard--with-separate-header&globals=polarisSummerEditions2023:true) 2. Make sure the cache is empty (empty cache and hard reload) 3. Refresh (or rerender) to see popover overlay shift <details> <summary>Replicate Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/53ed5e19-7c8d-4ee4-ab95-81a2c08e279d </details> #### To tophat fix: 1. Go to [this story on this PR's chromatic](https://5d559397bae39100201eedc1-qhkfhdyjuo.chromatic.com/?path=/story/all-components-legacycard--with-separate-header) 2. Repeat steps 2-3 above <details> <summary>Fixed Bug Demo</summary> https://github.com/Shopify/polaris/assets/20652326/de28ff59-84ab-46bd-b28a-31dbede8f001 </details>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WHY are these changes introduced?
Resolves #10038
WHAT is this pull request doing?
inter
font to avoid flakey width/postion calculations in chromatic snapshots (more context in the issue)polaris-react/.storybook
changesHow to 🎩
To duplicate the original bug:
Replicate Bug Demo
replicate-shift.mov
To tophat fix:
Fixed Bug Demo
replicate-shift-fixed.mov