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

Add option for collapse component to enable class toggling on toggle button when enabled/disabled #236

Open
cjg89 opened this issue Apr 29, 2022 · 0 comments
Assignees
Milestone

Comments

@cjg89
Copy link
Member

cjg89 commented Apr 29, 2022

Description

Because buttons and collapse components share the data-toggle attribute to enable their respective functionality via HTML, it is currently impossible to utilize .active class switching on a .btn that also controls a .collapse.

Add an opt-in option to the collapse component that lets the user specify one or more classes to add to the toggle, preferably on any of the toggle's four transition events:

  • show.bs.collapse
  • shown.bs.collapse
  • hide.bs.collapse
  • hidden.bs.collapse

Why it's Important

See scenario above.

Alternatives

n/a

Possible Implementation

Ideally these options should be configurable via HTML attributes and/or JS options.

Additional context

n/a

@cjg89 cjg89 added this to the backlog milestone Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants