-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pla 991 fix radio box styling issues #101
Conversation
className, | ||
}: RadioBoxOptionProps) => { | ||
const Title = ({ children }: { children: React.ReactNode }) => ( | ||
<h2 className="headline-500 text-neutral-900 group-[.is-checked]:text-neutral-0 group-[.is-disabled]:text-neutral-500"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this works here too:
group-ui-checked:
Also for other implementations in your MR :)
Ress: https://github.com/tailwindlabs/headlessui/tree/main/packages/%40headlessui-tailwindcss#documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ve tested or tried this already, but unfortunately this doesn’t work for non-option
-html-elements. The radio boxes needs to render div elements which aren’t supporting css check and active states (at least for groups). The element isn’t working here, because we need to render more complex children than just strings :-)
🎉 This PR is included in version 3.14.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
This mr adds a breaking change to radio boxes and adds some styling fixes to match the new design