From 7caa4e8f1a5343318420267fb9fde2a9337c0352 Mon Sep 17 00:00:00 2001 From: Kevin Buhmann Date: Thu, 12 Jan 2023 05:59:27 -0600 Subject: [PATCH] feat(modal): remove `ClrFocusOnViewInitModule` from `ModalModule` The modal now uses `cdkFocusInitial` instead of `clrFocusOnViewInit`. BREAKING CHANGE: The `ModalModule` no longer exports `ClrFocusOnViewInitModule`. --- projects/angular/clarity.api.md | 2 +- projects/angular/src/modal/modal.module.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/projects/angular/clarity.api.md b/projects/angular/clarity.api.md index fb01ce6426..2634111960 100644 --- a/projects/angular/clarity.api.md +++ b/projects/angular/clarity.api.md @@ -2691,7 +2691,7 @@ export class ClrModalModule { // Warning: (ae-forgotten-export) The symbol "i2_23" needs to be exported by the entry point index.d.ts // // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) diff --git a/projects/angular/src/modal/modal.module.ts b/projects/angular/src/modal/modal.module.ts index 27ec3190bd..f06420ec06 100644 --- a/projects/angular/src/modal/modal.module.ts +++ b/projects/angular/src/modal/modal.module.ts @@ -10,16 +10,15 @@ import { ClarityIcons, windowCloseIcon } from '@cds/core/icon'; import { ClrIconModule } from '../icon/icon.module'; import { CdkTrapFocusModule } from '../utils/cdk/cdk-trap-focus.module'; -import { ClrFocusOnViewInitModule } from '../utils/focus/focus-on-view-init/focus-on-view-init.module'; import { ClrModal } from './modal'; import { ClrModalBody } from './modal-body'; export const CLR_MODAL_DIRECTIVES: Type[] = [ClrModal, ClrModalBody]; @NgModule({ - imports: [CommonModule, CdkTrapFocusModule, ClrIconModule, ClrFocusOnViewInitModule], + imports: [CommonModule, CdkTrapFocusModule, ClrIconModule], declarations: [CLR_MODAL_DIRECTIVES], - exports: [CLR_MODAL_DIRECTIVES, ClrIconModule, ClrFocusOnViewInitModule], + exports: [CLR_MODAL_DIRECTIVES, ClrIconModule], }) export class ClrModalModule { constructor() {