Skip to content

Conversation

@sfc-gh-jgarcia
Copy link
Contributor

@sfc-gh-jgarcia sfc-gh-jgarcia commented Apr 21, 2023

📚 Context

This PR fixes a regression where the font config setting in custom themes is being applied to code blocks (see this bug report).

  • What kind of change does this PR introduce?

    • Bugfix
    • Feature
    • Refactoring
    • Other, please describe:

🧠 Description of Changes

  • Updated the fallback codeFont being to applied in createEmotionTheme under theme/utils.ts;

  • This is a breaking API change

  • This is a visible (user-facing) change

Revised:

Screenshot 2023-04-21 at 11 35 38 AM

Screenshot 2023-04-21 at 11 35 28 AM

Screenshot 2023-04-21 at 11 35 17 AM

Current:

Screen.Recording.2023-04-21.at.14.00.00.mov

🧪 Testing Done

  • Screenshots included
  • Added/Updated unit tests
  • Added/Updated e2e tests

🌐 References


Contribution License Agreement

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

@sfc-gh-jgarcia sfc-gh-jgarcia added the security-assessment-completed Security assessment has been completed for PR label Apr 21, 2023
@sfc-gh-jgarcia sfc-gh-jgarcia marked this pull request as ready for review April 21, 2023 16:22
@sfc-gh-kbregula sfc-gh-kbregula merged commit f38fbab into develop Apr 21, 2023
tconkling added a commit to tconkling/streamlit that referenced this pull request Apr 24, 2023
* develop:
  Removing viz-1.8.0.min.js (streamlit#6520)
  st.experimental_connection: The big merge (streamlit#6487)
  Add additional attributions (streamlit#6536)
  Fix code block font change (streamlit#6535)
  Fully remove email from new session message (streamlit#6516)
  Clarify what telemetry data our backend stores (streamlit#6463)
  Update emojis to latest state (streamlit#6532)
  Add support for pandas 2.0 (streamlit#6507)
  Fix regression in visibility of `st.code`'s copy-to-clipboard button (streamlit#6498)
  Fix E2E image (streamlit#6524)
  Add tenacity as dependency (streamlit#6529)
@vdonato vdonato deleted the fix-code-font branch June 14, 2023 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

theme.font config setting is being applied to code blocks in 1.21.0

4 participants