fix image button style (#23581)

This commit is contained in:
Alan Ren
2023-06-29 20:23:58 -07:00
committed by GitHub
parent da01b4c218
commit d528e5c607

View File

@@ -218,7 +218,7 @@ export class Button extends Disposable implements IButton {
let background, foreground, border, fontWeight, fontSize: string;
if (this.hasIcon) {
background = border = 'transparent';
foreground = this.options.buttonSecondaryForeground;
foreground = 'inherit';
fontWeight = fontSize = 'inherit';
this._element.style.backgroundRepeat = 'no-repeat';
} else {