Using `st.markdown` with HTML is changing the look of the whole page

It is not the button.

import streamlit as st

st.title("[Semantic UI CSS](https://semantic-ui.com/)")
st.caption('A live demo')

if st.checkbox(label="Apply Semantic UI CSS"):
    st.markdown(
        '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">',
        unsafe_allow_html=True
    )
1 Like