Link_button not rendered properly

I am using st.link_button in the main body but it renders very faint.

The code used is:
st.link_button(label=":black[Click to Checkout]", url=checkout_url, help="Click to visit check-out page to complete payment. Checkout will expire in 3 minutes.", type="secondary", use_container_width=False)

That button looks like this in Streamlit 1.42.2 and 1.43.0, because :black is not a supported color:
Screenshot From 2025-03-05 18-10-16

If you change the label to just "Click to Checkout", it looks like this:
Screenshot From 2025-03-05 18-10-50
Which IMHO is black enough.

The button is still pretty hazy. When I have the same button in the sidebar, it renders perfectly. I am using Streamlit 1.33.

The button in the sidebar renders exactly the same for me, also using streamlit 1.33.
Screenshot From 2025-03-06 17-57-05
The text is not really black, you can make it black by changing the theme or using CSS, if that is what you want.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.