F
Filament6mo ago
dyo

Make placeholder text black

How can I make my input placeholder text to be black?
5 Replies
krekas
krekas6mo ago
by applying style
Dennis Koch
Dennis Koch6mo ago
1) Sounds like a bad pattern that will confuse your users 2) Create a custom theme and add the required CSS
dyo
dyoOP6mo ago
how can I apply the custom style only in one of my input
igmltd
igmltd6mo ago
You can pass extra HTML attributes to a field - something like this: TextInput::make('field') ->extraFieldWrapperAttributes(['class' => 'placeholder-text-colour']) https://filamentphp.com/docs/3.x/forms/fields/getting-started#adding-extra-html-attributes
dyo
dyoOP5mo ago
thanks for your anwer, i'll try that..
Want results from more Discord servers?
Add your server