Skip to content
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

Merged
merged 6 commits into from
Jan 30, 2024

Conversation

Coderwelsch
Copy link
Contributor

@Coderwelsch Coderwelsch commented Jan 29, 2024

Description

This mr adds a breaking change to radio boxes and adds some styling fixes to match the new design

Copy link

linear bot commented Jan 29, 2024

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">
Copy link
Collaborator

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

Copy link
Contributor Author

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 :-)

@Coderwelsch Coderwelsch merged commit dcaadf5 into main Jan 30, 2024
6 checks passed
@Coderwelsch Coderwelsch deleted the pla-991-fix-radio-box-styling-issues branch January 30, 2024 10:29
@abusix-bot
Copy link
Collaborator

🎉 This PR is included in version 3.14.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants