From da7ff2b382c0382e044a4fc2523018a3ea388322 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 12 Sep 2020 11:36:30 -0400 Subject: [PATCH] Remove now pointless use of `important` in CSS styles Now that the element picker user interface is isolated frompage content world, there is no need to use the `important` modifier for the element picker's own CSS styles. --- src/js/epicker-ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/epicker-ui.js b/src/js/epicker-ui.js index fc628e122..7ab87c35f 100644 --- a/src/js/epicker-ui.js +++ b/src/js/epicker-ui.js @@ -509,8 +509,8 @@ const onStartMoving = (( ) => { timer = undefined; const r1 = Math.min(Math.max(r0 - mx1 + mx0, 4), rMax); const b1 = Math.min(Math.max(b0 - my1 + my0, 4), bMax); - dialog.style.setProperty('right', `${r1}px`, 'important'); - dialog.style.setProperty('bottom', `${b1}px`, 'important'); + dialog.style.setProperty('right', `${r1}px`); + dialog.style.setProperty('bottom', `${b1}px`); }; const moveAsync = ev => { @@ -634,7 +634,7 @@ const populateCandidates = function(candidates, selector) { if ( candidates.length !== 0 ) { root.style.removeProperty('display'); } else { - root.style.setProperty('display', 'none', 'important'); + root.style.setProperty('display', 'none'); } };