Skip to content

Commit

Permalink
feat(design): add deprecation notice for DaffNavAccordionItemComponent (
Browse files Browse the repository at this point in the history
  • Loading branch information
xelaint committed Oct 4, 2023
1 parent 189d132 commit 2059403
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/design-land/src/app/accordion/accordion.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ <h3>Types</h3>
<h3>Content Accordion Item</h3>
<design-land-example-viewer-container example="basic-accordion"></design-land-example-viewer-container>

<h3>Navigation Accordion Item</h3>
<h3>(DEPRECATED) Navigation Accordion Item</h3>
<p>Use the <code>DaffTreeComponent</code> instead.</p>
<design-land-example-viewer-container example="nav-accordion"></design-land-example-viewer-container>
3 changes: 3 additions & 0 deletions apps/design-land/src/app/accordion/accordion.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import { DaffArticleModule } from '@daffodil/design';

Expand All @@ -14,6 +15,8 @@ import { DesignLandAccordionComponent } from './accordion.component';
],
imports: [
CommonModule,
RouterModule,

DesignLandAccordionRoutingModule,
DesignLandExampleViewerModule,
DaffArticleModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import { DaffAccordionComponent } from '../accordion/accordion.component';
import { daffAccordionAnimations } from '../animation/accordion-animation';
import { getAnimationState } from '../animation/accordion-animation-state';

/**
* @deprecated in v1.0.0. Use DaffTreeComponent instead.
*/
@Component({
selector: 'daff-nav-accordion-item',
templateUrl: './nav-accordion-item.component.html',
Expand Down

0 comments on commit 2059403

Please sign in to comment.