diff --git a/lib/core/src/lib/card-view/components/card-view-boolitem/card-view-boolitem.component.ts b/lib/core/src/lib/card-view/components/card-view-boolitem/card-view-boolitem.component.ts index d5337fd39b3..8d36313b570 100644 --- a/lib/core/src/lib/card-view/components/card-view-boolitem/card-view-boolitem.component.ts +++ b/lib/core/src/lib/card-view/components/card-view-boolitem/card-view-boolitem.component.ts @@ -22,7 +22,14 @@ import { BaseCardView } from '../base-card-view'; @Component({ selector: 'adf-card-view-boolitem', - templateUrl: './card-view-boolitem.component.html' + templateUrl: './card-view-boolitem.component.html', + styles: [ + ` + .adf-property-value { + padding: 15px 0; + } + ` + ] }) export class CardViewBoolItemComponent extends BaseCardView { diff --git a/lib/core/src/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.spec.ts b/lib/core/src/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.spec.ts index 32ed33a2a80..9421959f39b 100644 --- a/lib/core/src/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.spec.ts +++ b/lib/core/src/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.spec.ts @@ -73,9 +73,12 @@ describe('CardViewSelectItemComponent', () => { }); describe('Rendering', () => { - it('should render the label', () => { + it('should render custom label when editable is set to false', () => { + component.property = new CardViewSelectItemModel({ + ...mockDefaultProps, + editable: false + }); fixture.detectChanges(); - const labelValue = fixture.debugElement.query(By.css('.adf-property-label')); expect(labelValue).not.toBeNull(); expect(labelValue.nativeElement.innerText).toBe('Select box label'); diff --git a/lib/core/src/lib/card-view/components/card-view/card-view.component.html b/lib/core/src/lib/card-view/components/card-view/card-view.component.html index 10ac653f315..81a1f52ac2c 100644 --- a/lib/core/src/lib/card-view/components/card-view/card-view.component.html +++ b/lib/core/src/lib/card-view/components/card-view/card-view.component.html @@ -1,5 +1,5 @@
-
+