Skip to content

Commit

Permalink
fix: make wrapper size match icon size
Browse files Browse the repository at this point in the history
The div was strangely rendering at 24x28 px instead matching --ds-auro-icon-size on both width and height.
  • Loading branch information
DukeFerdinand committed Dec 20, 2024
1 parent 00c2046 commit 0997518
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/auro-icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ export class AuroIcon extends BaseIcon {
};

const classes = {
'label': this.label
'label': this.label,
'wrapper': true,
};

return html`
Expand Down
4 changes: 4 additions & 0 deletions src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ svg {
}
}

.wrapper {
height: var(--ds-auro-icon-size);
width: var(--ds-auro-icon-size);
}

.labelContainer {
line-height: 1.8;
Expand Down

0 comments on commit 0997518

Please sign in to comment.