Skip to content

Commit 35c8fc6

Browse files
authored
Merge pull request #680 from dxc-technology/marcialfps-card-outlined
[Patch] Card outlined prop default value
2 parents f34880e + 083949c commit 35c8fc6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

projects/dxc-ngx-cdk-site/src/app/components/examples/card/properties/card-table-properties/card-table-properties.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
</tr>
8686
<tr>
8787
<td>outlined: boolean</td>
88-
<td><code>false</code></td>
88+
<td><code>true</code></td>
8989
<td>Whether the card must be outlined.
9090
</td>
9191
</tr>

projects/dxc-ngx-cdk/src/lib/dxc-card/dxc-card.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class DxcCardComponent implements OnInit {
118118
/**
119119
* Whether the card must be outlined.
120120
*/
121-
@Input() outlined: boolean = false;
121+
@Input() outlined: boolean = true;
122122

123123
private isHovered: boolean;
124124

@@ -136,7 +136,7 @@ export class DxcCardComponent implements OnInit {
136136
imageCover: false,
137137
margin: null,
138138
tabIndexValue: 0,
139-
outlined: false,
139+
outlined: true,
140140
});
141141

142142
public ngOnChanges(changes: SimpleChanges): void {
@@ -195,7 +195,7 @@ export class DxcCardComponent implements OnInit {
195195
}
196196

197197
getShadowDepth() {
198-
return this.defaultInputs.value.outlined
198+
return !this.defaultInputs.value.outlined
199199
? "0"
200200
: this.isHovered &&
201201
this.onClick.observers.length > 0 &&

0 commit comments

Comments
 (0)