F
Filament17mo ago
daisy21

Custom color on checkbox option

need to target the span class
No description
Solution:
->label(new HtmlString('<span class="text-sm font-medium leading-4 text-danger-700">LABEL STRING</span>'))
->label(new HtmlString('<span class="text-sm font-medium leading-4 text-danger-700">LABEL STRING</span>'))
...
Jump to solution
2 Replies
daisy21
daisy21OP17mo ago
using extraAttributes doesnt work incase someone needs it i end up making label using htmlString
Solution
daisy21
daisy2117mo ago
->label(new HtmlString('<span class="text-sm font-medium leading-4 text-danger-700">LABEL STRING</span>'))
->label(new HtmlString('<span class="text-sm font-medium leading-4 text-danger-700">LABEL STRING</span>'))

Did you find this page helpful?