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

Skip to content

Conversation

@sfc-gh-nbellante
Copy link
Contributor

@sfc-gh-nbellante sfc-gh-nbellante commented Apr 14, 2025

Describe your changes

  • Modified the FontFaceDeclaration component to allow for an optional style property in the fontFaces array, defaulting to "normal" if not provided. This change enhances flexibility in font styling for better design adaptability.

Before

image

After

image

GitHub Issue Link (if applicable)

closes #11097

Testing Plan

E2E test added.


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@snyk-io
Copy link
Contributor

snyk-io bot commented Apr 14, 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 Apr 14, 2025

✅ PR preview is ready!

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

@sfc-gh-nbellante sfc-gh-nbellante added feature:config Related to `config.toml` and config options security-assessment-completed Security assessment has been completed for PR impact:users PR changes affect end users change:bugfix PR contains bug fix implementation labels Apr 14, 2025
@sfc-gh-nbellante sfc-gh-nbellante marked this pull request as ready for review April 14, 2025 17:07
@sfc-gh-nbellante sfc-gh-nbellante changed the title Update FontFaceDeclaration to support customizable font styles BugFix 11097: Update FontFaceDeclaration to support customizable font styles Apr 14, 2025
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.

Code change looks good, can we add some e2e snapshot tests for this?

@sfc-gh-nbellante
Copy link
Contributor Author

Note to self: looks like the fonts aren't being properly loaded for the e2e tests. (Look at the f's)

- Modified the FontFaceDeclaration component to allow for an optional `style` property in the fontFaces array, defaulting to "normal" if not provided. This change enhances flexibility in font styling for better design adaptability.
…to make it clearer that the proper fonts are being used
…own for stuff that's not needed to reduce filesize and satisfy ruff
@sfc-gh-nbellante sfc-gh-nbellante enabled auto-merge (squash) April 15, 2025 21:50
@sfc-gh-nbellante sfc-gh-nbellante merged commit 0d30b1f into develop Apr 15, 2025
34 checks passed
@sfc-gh-nbellante sfc-gh-nbellante deleted the nico/bugfix-11097 branch April 15, 2025 22:11
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 feature:config Related to `config.toml` and config options 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.

theme.fontFaces doesn't load font which requires multiple font files

3 participants