Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style doesnt change #72

Open
hyperdesignbot opened this issue Oct 3, 2024 · 1 comment
Open

style doesnt change #72

hyperdesignbot opened this issue Oct 3, 2024 · 1 comment

Comments

@hyperdesignbot
Copy link

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"} </Button> </Banner> {shown && ( <Tooltip mode="dark" targetRef={ref}> Look in the mirror, you look so cute! Xx </Tooltip> )} </Section>

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

@mainsmirnov
Copy link
Collaborator

Hey, thank you for your issue.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants