Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Conversation

@federicobadini
Copy link
Contributor

@federicobadini federicobadini commented Aug 22, 2022

Closes #566

Apart from enriching the changes introduced with #626 we are proposing to add a bit of specificity to the system font stack currently defined in core primitives.
This PR is still a draft because we want to test that the proposed variation are ok on most devices/OS.

References

QA

Is anything broken with the new fonts?

@vercel
Copy link

vercel bot commented Aug 22, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
react-commerce ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 19, 2023 at 5:17PM (UTC)
react-commerce-prod ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 19, 2023 at 5:17PM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2023

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 351.15 KB (🟡 +3 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Eight Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/CommunityNext 6.08 KB (🟢 -2 B) 357.24 KB
/Parts 47.63 KB (🟢 -26 B) 398.79 KB
/Parts/[...deviceHandleItemType] 47.66 KB (🟢 -26 B) 398.81 KB
/Shop/[handle] 47.64 KB (🟢 -26 B) 398.79 KB
/Tools 47.63 KB (🟢 -26 B) 398.79 KB
/Tools/[handle] 47.64 KB (🟢 -26 B) 398.79 KB
/products/[handle] 75.42 KB (🟢 -44 B) 426.57 KB
/store 10.54 KB (🟢 -18 B) 361.69 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

federicobadini and others added 3 commits January 12, 2023 10:45
This is what we are now using on the rest of ifixit.com. We can adjust
the core primitives stack later if we want to tweak it.
@k0rvusk0r4x
Copy link

  • Fonts are working properly.
  • Nothing else appears broken.

QA 😺

@k0rvusk0r4x k0rvusk0r4x removed the QAing Under QA team review label Jan 12, 2023
masonmcelvain
masonmcelvain previously approved these changes Jan 12, 2023
Copy link
Contributor

@masonmcelvain masonmcelvain left a comment

Choose a reason for hiding this comment

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

CR ✌🏻 but deploy_block ✌🏻 on a question

Comment on lines 12 to 14
href="https://fonts.gstatic.com"
crossOrigin="anonymous"
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still want to preconnect to the google font api?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This too was added last month or so. So yep a little cleanup is needed.

as="h1"
className={className}
size="xl"
fontFamily="Archivo Black"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this branch may be out of date- there are more than 3 references to fontFamily="Archivo Black" on main.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, Probably a couple more reference got created in the meantime
I'll sort this out tomorrow morning

davidrans
davidrans previously approved these changes Jan 19, 2023
Copy link
Contributor

@davidrans davidrans left a comment

Choose a reason for hiding this comment

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

CR ☕

@k0rvusk0r4x k0rvusk0r4x added the QAing Under QA team review label Jan 19, 2023
Conflicts:
	frontend/package.json
	frontend/tests/jest/tests/__snapshots__/ProductListItem.test.tsx.snap
	pnpm-lock.yaml
@masonmcelvain
Copy link
Contributor

CR ✌🏻 merge conflicts were pretty straightforward

@k0rvusk0r4x
Copy link

Fonts continuing to work and not break anything else.

QA 😺

@k0rvusk0r4x k0rvusk0r4x removed the QAing Under QA team review label Jan 19, 2023
@masonmcelvain
Copy link
Contributor

un_deploy_block ✌🏻

@masonmcelvain masonmcelvain merged commit 48895fb into main Jan 19, 2023
@masonmcelvain masonmcelvain deleted the use-system-font branch January 19, 2023 22:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Font swap vs. optional

5 participants