From 60dba68073d1aa1e041a7d33a29e85359fa2ea93 Mon Sep 17 00:00:00 2001 From: MohammadMahdi Zamanian Date: Tue, 17 Jan 2023 00:19:04 +0330 Subject: [PATCH] fix(ui-kit/icon-box): empty & linkable width --- ui/ui-kit/src/icon-box/icon-box.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/ui-kit/src/icon-box/icon-box.ts b/ui/ui-kit/src/icon-box/icon-box.ts index 7945155687..107e646fc4 100644 --- a/ui/ui-kit/src/icon-box/icon-box.ts +++ b/ui/ui-kit/src/icon-box/icon-box.ts @@ -38,6 +38,7 @@ export class AlwatrStandardIconButton extends AlwatrSurfaceElement { a { display: flex; flex-direction: column; + width: 100%; padding: calc(3 * var(--sys-spacing-track)); gap: calc(1.5 * var(--sys-spacing-track)); color: inherit; @@ -60,6 +61,11 @@ export class AlwatrStandardIconButton extends AlwatrSurfaceElement { line-height: var(--sys-typescale-label-large-line-height); } + .headline:empty, + .description:empty { + display: none; + } + alwatr-icon { color: var(--sys-color-primary); width: calc(5 * var(--sys-spacing-track));