scala-webapp-template icon indicating copy to clipboard operation
scala-webapp-template copied to clipboard

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

Open nickcoast opened this issue 2 years ago • 1 comments

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")

nickcoast avatar Dec 30 '22 21:12 nickcoast

.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.

AlexITC avatar Jan 04 '23 02:01 AlexITC