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

data-toggle-is-active does not update aria-hidden attribute #125

Open
henrijs opened this issue Feb 19, 2024 · 0 comments
Open

data-toggle-is-active does not update aria-hidden attribute #125

henrijs opened this issue Feb 19, 2024 · 0 comments

Comments

@henrijs
Copy link

henrijs commented Feb 19, 2024

Describe the bug
When initializing toggle with data-toggle-is-active targets aria-hidden attribute is not changed. This happens when data-toggle-target is used to identify target, if data-toggle-target-parent is used, the bug is not present.

To Reproduce
Steps to reproduce the behavior:

  1. Have exact markup like in Collapsible panel with ARIA.
  2. Add data-toggle-is-active to button.
  3. Reload page and note panel is expanded (working, is-active class added to button, panels aria-hidden set to false)
  4. Change attribute from data-toggle-target-parent to data-toggle-target
  5. Reload page and note panel is NOT expanded (does not work, is-active class added to button, but panels aria-hidden IS NOT set to true (value not changed))

Expected behavior
aria-hidden value changed to true

Screenshots
None.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Firefox
  • Version 122

Additional context
None.

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

1 participant