Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
felixw committed Sep 18, 2023
1 parent 0239b0a commit fab0824
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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 {
Expand All @@ -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 &&
Expand Down

0 comments on commit fab0824

Please sign in to comment.