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

fix(dropdown): add show class to dropdown toggle when dropdown is open #4532

Merged
merged 1 commit into from Oct 25, 2023

Conversation

jsarem
Copy link
Contributor

@jsarem jsarem commented Jun 26, 2023

The show class on dropdown toggle will keep the button element in active state, inditicating that dropdown is open. This small change was made between Bootstrap v4 and v5.

Fixes #4531

The `show` class on dropdown toggle will keep the button element in active state, inditicating that dropdown is open. This small change was made between Bootstrap v4 and v5.

Fixes ng-bootstrap#4531
@jsarem
Copy link
Contributor Author

jsarem commented Jun 26, 2023

I hesitate to remove .show class from NgbDropdown directive because it would be breaking change for all who have custom styles relying on it. It doesn't serve any other purpose on Bootstrap 5. Let me know what you think.

@maxokorokov maxokorokov added this to the 16.0.0 milestone Jul 6, 2023
@maxokorokov maxokorokov merged commit 6bf2ab0 into ng-bootstrap:master Oct 25, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropdown toggle doesn't have "show" class when dropdown is open
2 participants