extraAttributes to reformat hint on checkbox?
I want a checkbox hint to be underneath the checkbox, like in the screenshot. In order to do that, I need to add
flex-col items-start
classes to the parent div, not the input itself. Using extraAttributes
seems like it only adds the class to the input itself. Does anyone know how I might accomplish this?
Solution:Jump to solution
Super ugly, but this works. I put the the
extraAttributes
on the form itself, and then added this css selector:
```css
div.checkbox-hint-flex-col>div:nth-child(4)>div.fi-fo-field-wrp>div.grid>div:first-child {
@apply flex flex-col items-start;...6 Replies
If the parent div doesn’t have a selector you can probably use the :has() css pesudo selector to make it work.
I was able ot add a class to the form
Something like
Div:has(.checkbox-hint-flex-col)
but the parent of the input that I need to target doesn't have anything I can use to target it.
ok i'll try that..
Depending on the nesting might need some ‘>’ to specify it more.
Just depends on the actual nesting of the divs.
Solution
Super ugly, but this works. I put the the
extraAttributes
on the form itself, and then added this css selector: