Skip to content

Commit

Permalink
feat(dropdown): remove deprecated NgbNavbar directive
Browse files Browse the repository at this point in the history
BREAKING CHANGES:

`NgbNavbar` directive is removed, as it is no longer required. It was deprecated in `14.2.0`.
  • Loading branch information
maxokorokov committed Nov 8, 2023
1 parent ade9e4f commit c2c8061
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/dropdown/dropdown.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export {
NgbDropdownMenu,
NgbDropdownItem,
NgbDropdownButtonItem,
// eslint-disable-next-line deprecation/deprecation
NgbNavbar,
} from './dropdown';
export { NgbDropdownConfig } from './dropdown-config';

Expand Down
6 changes: 0 additions & 6 deletions src/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ import { NgbDropdownConfig } from './dropdown-config';
import { FOCUSABLE_ELEMENTS_SELECTOR } from '../util/focus-trap';
import { getActiveElement } from '../util/util';

/**
* @deprecated 14.2.0 this directive isn't useful anymore. You can remove it from your imports
*/
@Directive({ selector: '.navbar', standalone: true })
export class NgbNavbar {}

/**
* A directive you should put on a dropdown item to enable keyboard navigation.
* Arrow keys will move focus between items marked with this directive.
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ export {
NgbDropdownMenu,
NgbDropdownModule,
NgbDropdownToggle,
// eslint-disable-next-line deprecation/deprecation
NgbNavbar,
} from './dropdown/dropdown.module';
export {
ModalDismissReasons,
Expand Down

0 comments on commit c2c8061

Please sign in to comment.