Skip to content

Commit

Permalink
fix(web-icons): resolve issues with host sizing (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimshins authored Nov 23, 2024
1 parent 31b0d54 commit 065d379
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/web-icons/src/base-icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,20 @@ class BaseIcon extends HTMLElement {

this.shadowRoot!.innerHTML = `
<style>
svg {
color: currentcolor;
fill: currentcolor;
:host {
color: currentColor;
display: inline-block;
width: ${width};
height: ${height};
${minWidth ? `min-width: ${minWidth};` : ""}
${minHeight ? `min-height: ${minHeight};` : ""}
}
svg {
color: currentcolor;
fill: currentcolor;
}
</style>
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down

0 comments on commit 065d379

Please sign in to comment.