Open AAstridVH opened 9 months ago
This issue comes from a user on Discord. It is quite hard to change the size of a button if you don't know CSS.
main.py:
from taipy import Gui
buttons = """
<|Small|button|class_name=smallButton|>
<|Big|button|class_name=bigButton|>"
"""
Gui(buttons).run()
main.css:
.smallButton{
min-height: unset;
line-height: 1.2rem;
padding: 0;
font-size: 1rem;
text-transform: initial;
}
.bigButton{
min-height: unset;
line-height: 3.6rem;
padding: 0;
font-size: 3rem;
text-transform: initial;
}
Taipy 3.0.0
Make the MUI classes "Small", "Medium" and "Large" available for buttons.
https://mui.com/material-ui/react-button/