Skip to content

Commit b290c06

Browse files
committed
Eliminated unneeded classs assignment to checkmark icon
1 parent 6d8ae88 commit b290c06

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

assets/js/components/chatbot/menus.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ window.menus = {
2626
width: 13px ; height: 13px ; top: 2px ; position: relative ; margin-right: 3px }
2727
#${app.slug}-api-menu > ul > li:first-of-type > svg { /* API header entry icon */
2828
top: 3px ; margin: 0 1px 0 -4px } /* tighten pos */
29-
.${app.slug}-menu-item .checkmark-icon {
29+
.${app.slug}-menu-item .checkmark {
3030
position: relative ; float: right ; margin-right: -20px ; top: 3.5px ; fill: #b3f96d }
31-
.${app.slug}-menu-item:hover .checkmark-icon { fill: green }`
31+
.${app.slug}-menu-item:hover .checkmark { fill: green }`
3232
))
3333
},
3434

@@ -85,8 +85,7 @@ window.menus = {
8585
item.prepend(icon)
8686
} else // indent
8787
item.style.paddingLeft = '11px'
88-
if (entry.isActive)
89-
item.append(icons.create({ key: 'checkmark', class: 'checkmark-icon', size: 12 }))
88+
if (entry.isActive) item.append(icons.create({ key: 'checkmark', size: 12 }))
9089
}
9190
item.onclick = () => {
9291
if (!entry.onclick) return

0 commit comments

Comments
 (0)