Css Issue - Buttons & Navigation Icon
I need a help with Buttons Css, In a form there are 3 Buttons out of which I just want to change bg-color of one , which I'm doing using class fi-btn but it doesn't change anything.. am I doing something wrong? and Need to know which class are we using for navigation icons that is not working as well ty.
18 Replies
Can I see your CSS?
@Andrew Wallo
So you only want the background color to be different in dark mode?
And you only want one of the buttons to be a different background color?
yes
Well what type of button is it in the form? Is it a submit button? What are different from this button compared to the other buttons you don't want to change? I need more info.. I can tell you that using this instead will work but it won't target only one of the buttons, it will target all of them.
Its a Edit button in infolist and the other one is report and delete but class for all of them is same fi-btn
There should be more than just "fi-btn" shown in the css. Inspect the elements in the browser and see what is different.
I even used .fi-btn .fi-btn-label which is inside fi-btn
but it shows two diff. color one with bg and other for label
If you can't target it specifically any other way and the href link here is unlikely to change just use something like this:
This may not be the best way, but you can target css elements by using anything you can that makes it specific.
Yeah I know because it's just gonna change color for single record doesn't make any sense but I appreciate your help thanks π
Alright well just trying to help π
And just wanted to make sure, there is no way to edit the color of the action/button in Filament?
Yay it worked... Idk what I was thinking π
it was always there in docs.
Glad it worked!
but its not gonna change color for light/dark
Then use
extraAttributes(['class' => 'dark:bg-whatever'])
. May work I dont know.
But it does support it. You just have to find a way to do it. Not everything imaginable is going to be supported "first class" or whatever. You don't have to use the package if you don't want to, but you decided to because of what it offers.
And its because publishing and customizing views from a package is not the best idea in order to avoid breaking changes. That has nothing to do with Filament.
But you are definitely welcome to publish views as long as you know the implications of doing so.It worked thanks a bunch π
Great! Make sure to mark the question as solved if all good.