Change color of sub text of st.button


I want to hide sub text in st.button as I need the same text for multiple st.button on the app

Steps to reproduce

Code snippet:

F':pink[function_name] - Try Me!

Basically I need the pink sub text to be invisible for user but unique as element key
In version 1.20.0 it was working on 1.22.0 it show all the text with same color

Additional information

If needed, add any other context about the problem here.

What was working in version 1.20.0? Your code snipped isnโ€™t even valid python. And what do you mean by "sub text "? Do you expect that making it pink will also make it invisible?

Regarding โ€œit show all the text with same colorโ€, this is what the 1.20.0 docs on markdown have to say about colored text:

  • Colored text, using the syntax :color[text to be colored], where color needs to be replaced with any of the following supported colors: blue, green, orange, red, violet.

It is exactly the same for 1.22.0.

In 1.20.0 it was making the inside of invisible

That was probably a bug that has been fixed.

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