diff --git a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html index 3cea622b..36fe7052 100644 --- a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html +++ b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html @@ -105,20 +105,24 @@

{{ subheader }}

> - - {{ item.value | dynamicPipe:item.valuePipe:item.valuePipeArgs}} - + + + {{ item.value | dynamicPipe:item.valuePipe:item.valuePipeArgs}} + + diff --git a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.stories.ts b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.stories.ts index 92226e86..8fd465e1 100644 --- a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.stories.ts +++ b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.stories.ts @@ -349,6 +349,26 @@ export const WithObjectDetailsAndIcons = { }, } +export const WithObjectDetailsAndStyledIcons = { + render: Template, + + args: { + header: 'My title', + subheader: 'My subtitle', + loading: false, + objectDetails: [ + ...demoFields, + { + label: 'Styled Icon', + value: 'Confirmed', + icon: PrimeIcons.CHECK_CIRCLE, + iconStyleClass: 'text-red-400 fadein animation-duration-1000 animation-iteration-infinite' + } + ], + showBreadcrumbs: false, + }, +} + export const DefaultLayout = { render: Template, diff --git a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts index 10bd12e1..973f527c 100644 --- a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts +++ b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts @@ -53,6 +53,7 @@ export interface ObjectDetailItem { labelTooltip?: string valueTooltip?: string icon?: PrimeIcon + iconStyleClass?: string labelPipe?: Type valuePipe?: Type valuePipeArgs?: string