Telegram-Mini-Apps / TelegramUI

React components library for Telegram Mini Apps inspired by Telegram interface
https://ton.org/mini-apps
MIT License
439 stars 35 forks source link

style doesnt change #72

Open hyperdesignbot opened 1 month ago

hyperdesignbot commented 1 month ago

Hello Some styles don't change even if it defined in module.css or even it defined in Component. This is my code: `<Section style={{color:"red", fontFamily:"cursive"}} header="Tooltip sectionss"> <Banner header="Tooltip on button" subheader="Press the button to show the tooltip" className={styles.container}

<Button ref={ref} size="s" className={styles.button} onClick={() => setShown(!shown)}

{shown ? "Hide" : "Show"} {shown && (

Look in the mirror, you look so cute! Xx

)} `

The color changes to red but font-family doesnt change. Screenshot 2024-10-03 131013

mainsmirnov commented 1 month ago

Hey, thank you for your issue.

You need to rewrite --tgui--font-family variable or apply style directly to element