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

Is it possible to change the styles of a NavLinkButton on individual instances or global default? #303

Open
nickcoast opened this issue Dec 30, 2022 · 1 comment

Comments

@nickcoast
Copy link

Hello again!

AppBar.scala has NavLinkButtons for authenticated and unauthenticated states, and you pass in the path, link text, and onClick.

But I don't see a way to override the default styles in package net.wiringbits.webapp.utils.slinkyUtils.components.core.widgets NavLinkButton.

E.g., let's say I wanted to change the color of the links to #0074bf with .setColor("#0074bf")

@AlexITC
Copy link
Contributor

AlexITC commented Jan 4, 2023

.setColor("inherit")

I found this at the NavLinkButton component, hence, the component will inherit the color from its parent, I'd try setting the color on AppBar.scala, you could try creating a div with your desired color, hopefully, this will work.

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