diff --git a/packages/components/src/components/icon-button/icon-button.tsx b/packages/components/src/components/icon-button/icon-button.tsx index 6e165e47d0..96659d119f 100644 --- a/packages/components/src/components/icon-button/icon-button.tsx +++ b/packages/components/src/components/icon-button/icon-button.tsx @@ -87,7 +87,7 @@ export class IconButton { const icon: HTMLElement = this.hostElement.querySelector( child.nodeName ); - //set icon size + // set icon size switch (this.size) { case 'small': icon.setAttribute('size', '16'); @@ -99,7 +99,7 @@ export class IconButton { icon.setAttribute('size', '24'); break; } - if (this.type == 'toggle') { + if (this.type === 'toggle') { if (this.active) { icon.setAttribute('selected', 'true'); } else { @@ -114,7 +114,7 @@ export class IconButton { } componentDidUpdate() { - if (this.type == 'toggle') { + if (this.type === 'toggle') { Array.from(this.hostElement.childNodes).forEach((child) => { if ( child.nodeType === 1 &&