OwenMelbz / nova-radio-field

Provides a radio field for laravel nova with ability to toggle field visibility.
34 stars 31 forks source link

Radio button styling issue? #11

Closed vdhruv closed 4 years ago

vdhruv commented 4 years ago

the radio button is displaying in base HTML style instead of nova theme. can anyone suggest me how to apply nova theme assets to this radio button. image

JoshMoreno commented 4 years ago

Do you mean how to style the radio button? In your nova service provider boot method you can register additional css

Nova::style('radio-button', asset('css/radio-button.css'));

Or override the form field entirely by specifying what component to use in your nova resource

RadioButton::make('My Field')->component('my-custom-component')

Or globally override in your nova service provider boot method

RadioButton::useComponent('my-custom-component');
apepindev commented 4 years ago

I've added 'checkbox' class selector to the input to get it looking consistent.