Skip to content

Commit

Permalink
fix(ui-kit/icon-box): empty & linkable width
Browse files Browse the repository at this point in the history
  • Loading branch information
MM25Zamanian committed Jan 16, 2023
1 parent 518ea1f commit 60dba68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/ui-kit/src/icon-box/icon-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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));
Expand Down

0 comments on commit 60dba68

Please sign in to comment.