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

Add ability to use Disclosure.Button inside a Disclosure.Panel #682

Merged
merged 2 commits into from
Jul 13, 2021

Conversation

RobinMalfait
Copy link
Collaborator

If you do it this way, then the Disclosure.Button will function as a
close button.

This will make it consistent with the Popover.Button inside the
Popover.Panel funcitonality.

@vercel
Copy link

vercel bot commented Jul 13, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

headlessui-react – ./packages/@headlessui-react

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-react/4RdKUikNVCX5ZP3T6g9R17rQkCmg
✅ Preview: https://headlessui-react-git-add-disclosure-button-978e5d-tailwindlabs.vercel.app

headlessui-vue – ./packages/@headlessui-vue

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-vue/3EixZjF1NiCBBYh3g18xRUoiRKxM
✅ Preview: https://headlessui-vue-git-add-disclosure-button-in-panel-tailwindlabs.vercel.app

@RobinMalfait RobinMalfait changed the title add ability to use Disclosure.Button inside a Disclosure.Panel Add ability to use Disclosure.Button inside a Disclosure.Panel Jul 13, 2021
If you do it this way, then the `Disclosure.Button` will function as a
`close` button.

This will make it consistent with the `Popover.Button` inside the
`Popover.Panel` funcitonality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant