Summary
I’m trying to replace the upper and lower arrows in the Metric component by changing the CSS directly and adding a circle instead. Unfortunately, the code does not work.
Steps to reproduce
Code snippet:
replace_metric_arrow: str = """
<style>
[data-testid="stMetricDelta"] svg {
display: <circle cx="50" cy="50" r="50" />;
}
</style>
"""
# remove the arrow in the metrics and use a circle instead
st.write(replace_metric_arrow ,unsafe_allow_html=True)