-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(accordion): add icon to the accordion heading
fix(accordion): address code review comments fix(accordion): improve solution fix(accordion): fix punctuation
- Loading branch information
Showing
8 changed files
with
355 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { ReactiveFormsModule } from '@angular/forms'; | ||
import { | ||
LgAccordionModule, | ||
LgAlertModule, | ||
lgBrandIconCalendar, | ||
LgBrandIconModule, | ||
LgBrandIconRegistry, | ||
LgBreadcrumbModule, | ||
LgButtonModule, | ||
LgCardModule, | ||
LgCarouselModule, | ||
LgCheckboxGroupModule, | ||
LgDataPointModule, | ||
LgDateFieldModule, | ||
LgDetailsModule, | ||
LgFilterContainerModule, | ||
LgFooterModule, | ||
LgGridModule, | ||
LgHeaderModule, | ||
LgHeadingModule, | ||
LgHeroModule, | ||
LgHintModule, | ||
lgIconAdd, | ||
lgIconArrowDown, | ||
lgIconClose, | ||
lgIconFilter, | ||
LgIconModule, | ||
LgIconRegistry, | ||
lgIconRepeat, | ||
lgIconSearch, | ||
lgIconSecureMessaging, | ||
lgIconCheckmark, | ||
LgInputModule, | ||
LgLinkMenuModule, | ||
LgListWithIconsModule, | ||
LgMarginModule, | ||
LgPaddingModule, | ||
LgPageModule, | ||
LgPaginationModule, | ||
LgPrimaryMessageModule, | ||
LgPromoCardModule, | ||
LgQuickActionModule, | ||
LgRadioModule, | ||
LgSelectModule, | ||
LgSeparatorModule, | ||
LgSideNavModule, | ||
LgSortCodeModule, | ||
LgSpinnerModule, | ||
LgTabsModule, | ||
LgToggleModule, | ||
LgProgressBarComponent, | ||
LgProgressIndicatorComponent, | ||
LgProgressHeaderComponent, | ||
lgIconNotes, | ||
} from 'canopy'; | ||
|
||
import { AppComponent } from './app.component'; | ||
import { AppRoutingModule } from './app-routing.module'; | ||
import { StoryContentComponent } from './story-content.component'; | ||
|
||
@NgModule({ | ||
declarations: [ AppComponent, StoryContentComponent ], | ||
imports: [ | ||
AppRoutingModule, | ||
ReactiveFormsModule, | ||
BrowserModule, | ||
LgAccordionModule, | ||
LgAlertModule, | ||
LgBrandIconModule, | ||
LgBreadcrumbModule, | ||
LgButtonModule, | ||
LgCardModule, | ||
LgCarouselModule, | ||
LgCheckboxGroupModule, | ||
LgDataPointModule, | ||
LgDateFieldModule, | ||
LgDetailsModule, | ||
LgFilterContainerModule, | ||
LgFooterModule, | ||
LgGridModule, | ||
LgHeaderModule, | ||
LgHeadingModule, | ||
LgHeroModule, | ||
LgHintModule, | ||
LgIconModule, | ||
LgInputModule, | ||
LgListWithIconsModule, | ||
LgMarginModule, | ||
LgPaddingModule, | ||
LgPageModule, | ||
LgPaginationModule, | ||
LgPaddingModule, | ||
LgPrimaryMessageModule, | ||
LgPromoCardModule, | ||
LgQuickActionModule, | ||
LgRadioModule, | ||
LgSelectModule, | ||
LgSeparatorModule, | ||
LgSideNavModule, | ||
LgSortCodeModule, | ||
LgSpinnerModule, | ||
LgTabsModule, | ||
LgToggleModule, | ||
LgLinkMenuModule, | ||
LgProgressBarComponent, | ||
LgProgressHeaderComponent, | ||
LgProgressIndicatorComponent, | ||
], | ||
bootstrap: [ AppComponent ], | ||
}) | ||
export class AppModule { | ||
constructor( | ||
private iconRegistry: LgIconRegistry, | ||
private brandIconRegistry: LgBrandIconRegistry, | ||
) { | ||
this.iconRegistry.registerIcons([ | ||
lgIconAdd, | ||
lgIconArrowDown, | ||
lgIconClose, | ||
lgIconSearch, | ||
lgIconRepeat, | ||
lgIconSecureMessaging, | ||
lgIconFilter, | ||
lgIconCheckmark, | ||
lgIconNotes, | ||
]); | ||
|
||
this.brandIconRegistry.registerBrandIcon([ lgBrandIconCalendar ]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.