Skip to content

Conversation

@sfc-gh-tteixeira
Copy link
Contributor

@sfc-gh-tteixeira sfc-gh-tteixeira commented May 23, 2023

📚 Context

Apparently the functionality introduced in #6393 contains a bug where the bodyFont and codeFont attributes don't propagate to all elements properly.

From ~10min of debugging there seem to be 2 problems:

  1. Fixed in this PR: A trivial issue where many of our styles referenced the wrong font property in our theme.
  2. Still unsolved: the font for some things inside the sidebar doesn't update correctly (e.g. st.sidebar.info). This seems to be a theme propagation problem, potentially related to createEmotionTheme(). But this part requires more debugging.

Since 1 is so easy to fix, I thought it was worth fixing already even though 2 is still at large. Hence this PR!

  • What kind of change does this PR introduce?

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

🧠 Description of Changes

  • Add bullet points summarizing your changes here

    • This is a breaking API change
    • This is a visible (user-facing) change

🧪 Testing Done

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

🌐 References

Does this depend on other work, documents, or tickets?

  • Issue: Closes #XXXX

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-tteixeira
Copy link
Contributor Author

@kantuni @mayagbarnes I never know what I need to do about this check:
Screenshot 2023-05-23 at 11 42 38

I think someone has to add a special label to the PR?

@mayagbarnes mayagbarnes added the security-assessment-completed Security assessment has been completed for PR label May 23, 2023
@sfc-gh-tteixeira sfc-gh-tteixeira merged commit f3d1772 into streamlit:develop May 23, 2023
@sfc-gh-tteixeira sfc-gh-tteixeira deleted the fix-some-fonts branch May 23, 2023 22:00
tconkling added a commit to tconkling/streamlit that referenced this pull request May 30, 2023
* develop: (22 commits)
  enzyme -> react-testing-library (Countdown, Modal, ProgressBar) (streamlit#6744)
  Remove console.log (streamlit#6753)
  Update `st.data_editor` and `st.dataframe` docstrings (streamlit#6752)
  Update `st.data_editor` session state format (streamlit#6711)
  Cypress flaky test fixes (streamlit#6743)
  Document integer size limit for number_input and slider (streamlit#6724)
  Change default theme hash on app init (streamlit#6729)
  Use .genericFonts instead of .fonts to fix bug with theme postMessage. (streamlit#6732)
  Improve startup performance by lazy loading some dependencies (streamlit#6531)
  Add support for Altair 5 (streamlit#6618)
  Update modals (streamlit#6688)
  Improve docstrings for `ttl` and `max_entries` (streamlit#6733)
  Improve `st.columns` docstring (streamlit#6727)
  Removed orphan line in dataframe docstring (streamlit#6734)
  Fix useIsOverflowing dependency array (streamlit#6731)
  Remove experimental from data editor (streamlit#6712)
  Clarify set_page_config docstring and exception message (streamlit#6594)
  Add a config option to disable warning for setting both a widget default and its key in session_state (streamlit#6640)
  Add column configuration API for `st.dataframe` and `st.data_editor` (streamlit#6598)
  Migrate datetime column formatting from date-fns to momentJS (streamlit#6702)
  ...
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.

3 participants