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

fix: support adding extra controls on accordions #242

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

mikeldking
Copy link
Collaborator

@mikeldking mikeldking commented Oct 14, 2024

Changes the DOM for accordions to be a bit more honest - e.g. that there is a component that handles clicks and has a role of button but that there might be true user-facing buttons in the extra. For the extra components, event propagation is stopped to not interfere with the click handler on the parent.

Copy link

github-actions bot commented Oct 14, 2024

size-limit report 📦

Path Size
dist/components.cjs.production.min.js 219.92 KB (+0.03% 🔺)
dist/components.esm.js 151.97 KB (+0.02% 🔺)

Copy link

@cephalization cephalization left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mikeldking mikeldking merged commit 2b328f6 into main Oct 14, 2024
7 of 9 checks passed
@mikeldking mikeldking deleted the allow-for-buttons-in-accordions branch October 14, 2024 23:55
@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants