filter correction for verticalicon panel

standard
pull/1/head
LianaHus 6 years ago
parent f1400dd4d7
commit 433be3e0d4
  1. 10
      src/app/components/vertical-icons-component.js
  2. 1
      src/app/tabs/runTab/contractDropdown.js

@ -116,11 +116,16 @@ class VerticalIconComponent {
* Remove active for the current activated icons
*/
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}`)
if (currentActive) {
currentActive.classList.remove(css.active)
let image = currentActive.querySelector('.image')
image.style.setProperty('filter', 'invert(0.5)')
}
}
@ -242,7 +247,6 @@ const css = csjs`
filter: invert(0.5);
}
.image {
filter: invert(0.5);
}
.icon svg {
width: 28px;

@ -68,7 +68,6 @@ class ContractDropdownUI {
</div>
`
this.selectContractNames.addEventListener('change', this.setInputParamsPlaceHolder.bind(this))
this.setInputParamsPlaceHolder()
return el
}

Loading…
Cancel
Save