Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</tr>
<tr>
<td>outlined: boolean</td>
<td><code>false</code></td>
<td><code>true</code></td>
<td>Whether the card must be outlined.
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions projects/dxc-ngx-cdk/src/lib/dxc-card/dxc-card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class DxcCardComponent implements OnInit {
/**
* Whether the card must be outlined.
*/
@Input() outlined: boolean = false;
@Input() outlined: boolean = true;

private isHovered: boolean;

Expand All @@ -136,7 +136,7 @@ export class DxcCardComponent implements OnInit {
imageCover: false,
margin: null,
tabIndexValue: 0,
outlined: false,
outlined: true,
});

public ngOnChanges(changes: SimpleChanges): void {
Expand Down Expand Up @@ -195,7 +195,7 @@ export class DxcCardComponent implements OnInit {
}

getShadowDepth() {
return this.defaultInputs.value.outlined
return !this.defaultInputs.value.outlined
? "0"
: this.isHovered &&
this.onClick.observers.length > 0 &&
Expand Down