Skip to content

Commit 9a6baf6

Browse files
Merge pull request #122 from dxc-technology/fix-button
Fix button
2 parents b9002f7 + 937bdf7 commit 9a6baf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ export class DxcButtonComponent {
169169
}
170170

171171
getModeStyle(){
172-
if(this.mode === "primary"){
173-
return this.getPrimaryStyle();
172+
if(this.mode === "secondary"){
173+
return this.getSecondaryStyle();
174174
} else if(this.mode === "text"){
175175
return this.getTextStyle();
176176
} else {
177-
return this.getSecondaryStyle();
177+
return this.getPrimaryStyle();
178178
}
179179
}
180180

0 commit comments

Comments
 (0)