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 has unreachable content when JavaScript is disabled #528

Open
angleKH opened this issue Nov 11, 2024 · 1 comment
Open

Accordion has unreachable content when JavaScript is disabled #528

angleKH opened this issue Nov 11, 2024 · 1 comment

Comments

@angleKH
Copy link

angleKH commented Nov 11, 2024

Describe the bug
On browsers without JavaScript or with JavaScript disabled, collapsed accordion items are unviewable.

To Reproduce

  1. Go to https://kobalte.dev/docs/core/components/accordion/ with JavaScript disabled
  2. View the accordion example
  3. See that collapsed content is not viewable

Expected behavior
All content should be uncollapsed when the browser is not running JavaScript

Possible solutions

  • The <noscript> element is designed for this accessibility use case, it displays content when scripting is disabled or unsupported in a browser.
  • The HTML of the accordion can be rendered initially with all items uncollapsed, with JavaScript initializing it to the default collapse state when it runs.
@jer3m01
Copy link
Member

jer3m01 commented Nov 20, 2024

Kobalte doesn't currently support running without Javascript. Not sure if/when that will be planned.

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