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

chore(collapsible): use <details> & <summary> #326

Closed
infograafikko opened this issue Jan 23, 2024 · 1 comment
Closed

chore(collapsible): use <details> & <summary> #326

infograafikko opened this issue Jan 23, 2024 · 1 comment

Comments

@infograafikko
Copy link

infograafikko commented Jan 23, 2024

Is your feature request related to a problem? Please describe.
Collapsible box has been implemented using div's but <details> tag has now wide support. Would it be easier for screen readers and inspectors to make the element using <details> tag?

Describe the solution you'd like
Replace <div> solution with <details>

Link describing <details> tag https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details

Example:

What is Kobalte? Kobalte is a UI toolkit for building accessible web apps and design systems with SolidJS. It provides a set of low-level UI components and primitives which can be the foundation for your design system implementation.
@jer3m01 jer3m01 changed the title Feature Request: <details> & <summary> for collapsible box chore(collapsible): use <details> & <summary> Jan 24, 2024
@jer3m01
Copy link
Member

jer3m01 commented Jun 3, 2024

It seems that <details> and <summary> aren't flexible enough for Kobalte's implementation and flexibility.
Closing as not planned since the current implementation is already fully accessible.
Will reconsider if native <details> become more flexible.

@jer3m01 jer3m01 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2024
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

No branches or pull requests

2 participants