Changing field wrapper view, to change label styling
I'm creating a registration wizard, with the Filament wizard component. But I need to do some custom styling in the input labels. After doing some searching, I found the
When I change the label field-wrapper in the vendor folder, it does work, but it adjusts the styling everywhere. That's not what I want, I only want the updated styling in the registration wizard. Is trying to use the
fieldWrapperView() function. I couldn't find much documentation about it, but it seems to give the option to overwrite the field wrapper that includes the label. So I published the Filament Form views, copied the label component, changed the styling, and set the fieldWrapperView('livewire.components.field-wrapper.label'). Unfortunately, this doesn't seem to work, it can't find the label template at that location. I checked a lot of times, but I'm sure the view path is correct. Is this a bug?When I change the label field-wrapper in the vendor folder, it does work, but it adjusts the styling everywhere. That's not what I want, I only want the updated styling in the registration wizard. Is trying to use the
fieldWrapperView() function the right way to do this, or are there better ways?