From 72865a2f41cdb7e426f235bba5974aee24bd6426 Mon Sep 17 00:00:00 2001 From: Jialecl Date: Mon, 28 Mar 2022 13:52:38 +0200 Subject: [PATCH] [Minor]image/svg is no longer resized in button --- .../dxc-ngx-cdk/src/lib/dxc-button/dxc-button.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/dxc-ngx-cdk/src/lib/dxc-button/dxc-button.component.ts b/projects/dxc-ngx-cdk/src/lib/dxc-button/dxc-button.component.ts index 1a7e26e93..34bbf6033 100644 --- a/projects/dxc-ngx-cdk/src/lib/dxc-button/dxc-button.component.ts +++ b/projects/dxc-ngx-cdk/src/lib/dxc-button/dxc-button.component.ts @@ -202,7 +202,7 @@ export class DxcButtonComponent { width: 100%; display: flex; align-items: inherit; - justify-content: inherit; + justify-content: center; ${this.iconPosition === "after" ? "flex-direction: row-reverse;" : "flex-direction: row;"} @@ -227,8 +227,8 @@ export class DxcButtonComponent { ? "margin-left: 8px;" : "margin-right: 8px;" : ""} - height: 24px; - width: 24px; + height: 100%; + width: 100%; z-index: 20; } mat-icon {