Skip to content

Conversation

@karriebear
Copy link
Contributor

Create a Radio that does not need to deal with widgetMgr or element. This is for us to use while sharing the same visuals as what st.radio outputs


Contribution License Agreement

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

@karriebear karriebear requested a review from a team January 25, 2021 21:14
@vdonato vdonato self-assigned this Jan 25, 2021
Copy link
Collaborator

@vdonato vdonato left a comment

Choose a reason for hiding this comment

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

LGTM! I'm guessing this component previously didn't have unit tests?

Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: 2020 -> 2021 / same thing in other new files

@karriebear
Copy link
Contributor Author

karriebear commented Jan 25, 2021

We had unit tests for the component that was st.radio but this is pulling out a new one and leaving the current one that maps to st.radio just an intermediary that translates between our proto/element with the radio button :)

@karriebear karriebear merged commit fb8b242 into streamlit:develop Jan 25, 2021
@karriebear karriebear deleted the shared-radio branch January 25, 2021 22:34
tconkling added a commit to tconkling/streamlit that referenced this pull request Jan 25, 2021
* develop:
  Display a warning when not run via `streamlit run` (streamlit#2643)
  Extract a shared radio component for use within our UI (streamlit#2657)
  🔧 "Run on save" now defaults to true (streamlit#2641)
  Bump year to 2021 in license headers (streamlit#2654)
  Switched react-katex package (streamlit#2619)
  Don't add license headers for files in node_modules and cypress folders (streamlit#2655)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants