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

Accordion #47

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Accordion #47

wants to merge 5 commits into from

Conversation

ehannes
Copy link
Contributor

@ehannes ehannes commented Oct 23, 2022

No description provided.

Passing the expander as a slot didn't provide enough flexibility.
In my case, I want to position the expander, more that just left and
right align it compared to the Summary. Instead of using a slot,
a data-handle is used to get the on click functionality. The only
thing we drop is the default styling cursor: pointer which is
very simple to just add (and you might not always want a pointer...)
@ehannes ehannes changed the title WIP: Accordion Accordion Nov 7, 2022
@@ -0,0 +1,35 @@
import { component, html, useState, useEffect } from 'haunted'

const Accordion = (element) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Consider replacing this with an ordinary details with an a tag that wraps the h3.

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