How can change the focus-ring for input
Hey guys, i create a personal theme in my project and need change the size of focus-ring but i can find the right configuration for this line.
I have this code actually:
i want change the size of focus-ring and color, how can do this?
Thank you!
34 Replies
If you check your screenshot you see, that it needs to be added to
.fi-input.wrap
i try with this code, but is not working
Yeah. Check your screenshot again. I added 2 typos, but the class is right there in your screenshot
i update this:
But is not working, sorry for my basic problem bro!
The class is called
fi-input-wrp
. There is no a
in wrap
Probably a typo, so maybe add both to avoid future breaking changesDid you ever get this working? I've tried all sorts of variations and I can't get the focus ring to show up when I click or tab into a field.
No way worked for me, @phydeaux @Dennis Koch I did several tests but nothing, in my case I want to either hide it or reduce the size, the thickness or width of the focus ring line is too much...
And I can't get it to show up at all. I'm using a FormBuilder element in a standard Livewire component but I can't imagine that would make any difference.
‘focus-within’ is setting it to ring-2. You need to target that. Not ‘focus-visible’
Looks like you are also targeting ‘.fi-input’ instead of ‘.fi-input-wrp’ which is where the focus state is handled.
Thank you so much for this information @awcodes it's working really good for me!
i update my code like this @phydeaux
You can also combine those into one apply rule. 😃
like this?
Yep.
super cool, thank you bro! thank so much for your time!
No problem.
Thanks for giving Filament a go.
I owe you a beer!
It's the first project with Filament... I go for a second in a few weeks...
Using the Filament with FrankenPHP
Nice. Hoping to get more into FrankenPhp soon.
and I may go for the third, all like startup of course...
I’m converting 20+ projects to filament at the moment. 😅😂
Finally getting rid of Wordpress. Feels liberating.
In fact, in development I have it mounted in a docker and it runs fast like F1, just install it, I didn't have to configure anything in particular other than installing Laravel Octane... 🙌
Sounds cool.
super cool... i make site with wordpress a few years ago, but now with Laravel and more now with Filament, all is really amazing, we can make all with personalization and the webapp work more fast
if we have 170 request per second with wordpress and woocomerce, now with laravel we have 1000 or more request p/s
💯 feel like I spend more time fighting WP than using it.
Also don’t like being locked into react with all the recent updates and changes.
i hate react bro hahaha
i love NuxtJS or VueJS, more easy, more structured and more funny
or I think I misunderstood the word react
i think in the library
You’re not wrong.
but yes, the update of wordpress and plugins is other problem
The Gutenberg editor is all React
And all of the block data is stored in the db as html comments. Is so gross. 🤮
yeah, that is really bad, a bad idea too for performance
No doubt.
Thanks! That worked for me too. I'm so not a front-end guy 🙂
Super cool bro...
Came here to see if anyone was using Filament with frankenphp yet. 🙂
I will do this in a few week... i will put one of my project in dev from docker to DigitalOcean...