Skip to content

Commit

Permalink
Make setting color work for icon-button, hmmm
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Jan 14, 2025
1 parent 604c667 commit 84a37c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fontra/client/web-components/icon-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export class IconButton extends UnlitElement {
border: none;
padding: 0;
margin: 0;
color: var(--foreground-color);
width: 100%;
height: 100%;
cursor: pointer;
Expand Down Expand Up @@ -78,6 +77,7 @@ export class IconButton extends UnlitElement {
focus.restore();
},
disabled: this._buttonDisabled,
style: `color: undefined var(--foreground-color);`, // TODO: huh.
},
[html.createDomElement("inline-svg", { src: this.src })]
);
Expand Down

0 comments on commit 84a37c3

Please sign in to comment.