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

feat(dropdown): replace NgbNavbar usage by DOM call to closest() #4471

Merged
merged 1 commit into from
May 2, 2023

Conversation

jnizet
Copy link
Member

@jnizet jnizet commented Jan 20, 2023

The NgbNavbar directive is not removed, but simply deprecated, in order to avoid a breaking change for people who have imported it in their modules or standalone components.

fix #4462

Before submitting a pull request, please make sure you have at least performed the following:

  • read and followed the CONTRIBUTING.md and DEVELOPER.md guide.
  • built and tested the changes locally.
  • added/updated any applicable tests.
  • added/updated any applicable API documentation.
  • added/updated any applicable demos.

The NgbNavbar directive is not removed, but simply deprecated, in order to avoid a breaking change for people who have imported it in their modules or standalone components.

fix ng-bootstrap#4462
@jnizet
Copy link
Member Author

jnizet commented Jan 20, 2023

Note: I wondered if using a call to closest() would be an issue in a server-side environment, which I don't have any experience with, but Angular Universal now apparently uses domino, which should thus support the call.

@codecov-commenter
Copy link

Codecov Report

Base: 88.68% // Head: 88.68% // No change to project coverage 👍

Coverage data is based on head (f7e8d2f) compared to base (064fef3).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4471   +/-   ##
=======================================
  Coverage   88.68%   88.68%           
=======================================
  Files         114      114           
  Lines        4003     4003           
  Branches      844      844           
=======================================
  Hits         3550     3550           
  Misses        413      413           
  Partials       40       40           
Flag Coverage Δ
e2e 54.52% <50.00%> (ø)
unit 89.11% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/index.ts 100.00% <ø> (ø)
src/dropdown/dropdown.module.ts 100.00% <100.00%> (ø)
src/dropdown/dropdown.ts 91.42% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

NgbNavbar is not documented
3 participants