Commit 433be3e0 authored by LianaHus's avatar LianaHus

filter correction for verticalicon panel

standard
parent f1400dd4
...@@ -116,11 +116,16 @@ class VerticalIconComponent { ...@@ -116,11 +116,16 @@ class VerticalIconComponent {
* Remove active for the current activated icons * Remove active for the current activated icons
*/ */
removeActive () { removeActive () {
// reset filters
const images = this.view.querySelectorAll(`.image`)
images.forEach(function (im) {
im.style.setProperty('filter', 'invert(0.5)')
})
// remove active
const currentActive = this.view.querySelector(`.${css.active}`) const currentActive = this.view.querySelector(`.${css.active}`)
if (currentActive) { if (currentActive) {
currentActive.classList.remove(css.active) currentActive.classList.remove(css.active)
let image = currentActive.querySelector('.image')
image.style.setProperty('filter', 'invert(0.5)')
} }
} }
...@@ -242,7 +247,6 @@ const css = csjs` ...@@ -242,7 +247,6 @@ const css = csjs`
filter: invert(0.5); filter: invert(0.5);
} }
.image { .image {
filter: invert(0.5);
} }
.icon svg { .icon svg {
width: 28px; width: 28px;
......
...@@ -68,7 +68,6 @@ class ContractDropdownUI { ...@@ -68,7 +68,6 @@ class ContractDropdownUI {
</div> </div>
` `
this.selectContractNames.addEventListener('change', this.setInputParamsPlaceHolder.bind(this)) this.selectContractNames.addEventListener('change', this.setInputParamsPlaceHolder.bind(this))
this.setInputParamsPlaceHolder() this.setInputParamsPlaceHolder()
return el return el
} }
...@@ -89,7 +88,7 @@ class ContractDropdownUI { ...@@ -89,7 +88,7 @@ class ContractDropdownUI {
this.orLabel.style.display = 'block' this.orLabel.style.display = 'block'
} }
} }
setInputParamsPlaceHolder () { setInputParamsPlaceHolder () {
this.createPanel.innerHTML = '' this.createPanel.innerHTML = ''
if (this.selectContractNames.selectedIndex < 0 || this.selectContractNames.children.length <= 0) { if (this.selectContractNames.selectedIndex < 0 || this.selectContractNames.children.length <= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment