Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mayagbarnes
Copy link
Collaborator

@mayagbarnes mayagbarnes commented Jun 11, 2025

Describe your changes

Allow for full font-weight gradient using variable font files

Before: (note 400 used for 100-500, 600 for 600, then 700 for 700+)
Screenshot 2025-06-11 at 3 26 28 p m

After: (note 100-900 each apply)
Screenshot 2025-06-11 at 3 24 34 p m

GitHub Issue Link (if applicable)

Testing Plan

  • Manual Testing: ✅

@mayagbarnes mayagbarnes added security-assessment-completed Security assessment has been completed for PR change:feature PR contains new feature or enhancement implementation impact:users PR changes affect end users labels Jun 11, 2025
@snyk-io
Copy link
Contributor

snyk-io bot commented Jun 11, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@github-actions
Copy link
Contributor

github-actions bot commented Jun 11, 2025

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-11600/streamlit-1.45.1-py3-none-any.whl
🕹️ Preview app pr-11600.streamlit.app (☁️ Deploy here if not accessible)

@github-actions
Copy link
Contributor

github-actions bot commented Jun 11, 2025

📉 Significant wheel size change detected

The wheel file size has decreased by 1.70% (threshold: 0.25%)

  • Current PR: 9741.84 KB
  • Latest develop: 9910.72 KB

Please verify this change is expected.

@mayagbarnes mayagbarnes marked this pull request as ready for review June 12, 2025 23:47
Copy link
Collaborator

@sfc-gh-bnisco sfc-gh-bnisco left a comment

Choose a reason for hiding this comment

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

I did not go through all of the snapshots given the volume of them, but I did review the CSS changes and left a comment inline. This is an exciting PR!

@@ -18,172 +18,64 @@

@font-face {
font-family: "Source Code Pro";
font-weight: 400;
font-weight: 100 900;
font-style: regular;
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggestion: I understand this code was already written before this PR, but I believe the expected value for this is font-style: normal; [MDN docs]. This comment applies to any font-faces that use font-style: regular; in this file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was wondering about this, was looking around but didnt find any info on this being a replaced/legacy value - just curious if you encountered any context?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I honestly think it is just a long-standing typo. I don't know of this being a valid value 🤷‍♂️

@sfc-gh-mbarnes sfc-gh-mbarnes merged commit f12b45a into develop Jun 13, 2025
37 checks passed
@sfc-gh-mbarnes sfc-gh-mbarnes deleted the variable-fonts branch June 13, 2025 05:11
@sfc-gh-mbarnes sfc-gh-mbarnes added change:bugfix PR contains bug fix implementation and removed change:feature PR contains new feature or enhancement implementation labels Jun 13, 2025
mayagbarnes added a commit that referenced this pull request Jun 14, 2025
This fixes the preload in our `index.html` to point to the updated
variable files
Follow-up to PR updating individual Source Sans font weight files to
variable file (#11600)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants