Bug/toolbar icon revert (#6194)

* Change icon size rather than component size

* reverting the icon height impact
This commit is contained in:
Udeesha Gautam
2019-06-27 13:53:05 -07:00
committed by GitHub
parent 7b6181de2a
commit f5d647f05c

View File

@@ -47,8 +47,8 @@ export abstract class ComponentWithIconBase extends ComponentBase {
removeCSSRulesContainingSelector(this._iconClass);
const icon = this.getLightIconPath(this.iconPath);
const iconDark = this.getDarkIconPath(this.iconPath) || icon;
createCSSRule(`.icon.${this._iconClass}`, `background-image: url("${icon}");width: ${this.iconWidth};height: ${this.iconHeight};`);
createCSSRule(`.vs-dark .icon.${this._iconClass}, .hc-black .icon.${this._iconClass}`, `background-image: url("${iconDark}");width: ${this.iconWidth};height: ${this.iconHeight};`);
createCSSRule(`.icon.${this._iconClass}`, `background-image: url("${icon}")`);
createCSSRule(`.vs-dark .icon.${this._iconClass}, .hc-black .icon.${this._iconClass}`, `background-image: url("${iconDark}")`);
this._changeRef.detectChanges();
}
}