From 79495e03949b7b3272ba022562ae6d1e2ae9997c Mon Sep 17 00:00:00 2001 From: iseulde Date: Mon, 5 Jun 2017 23:56:03 +0200 Subject: [PATCH] Disable pointer events on unselected iframe. Props @westonruter. --- editor/modes/visual-editor/style.scss | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/editor/modes/visual-editor/style.scss b/editor/modes/visual-editor/style.scss index ff1a0a3da33d3..c4ff88bba0bfd 100644 --- a/editor/modes/visual-editor/style.scss +++ b/editor/modes/visual-editor/style.scss @@ -61,22 +61,12 @@ border: 2px solid $blue-medium-200; } - .iframe-overlay { - position: relative; + iframe { + pointer-events: none; } - .iframe-overlay:before { - content: ''; - display: block; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - } - - &.is-selected .iframe-overlay:before { - display: none; + &.is-selected iframe { + pointer-events: auto; } }