From 9953c71d76f70c0b8300e6b9a75f35426e371c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guszt=C3=A1v=20Szikszai?= Date: Sun, 18 Apr 2021 06:54:24 +0200 Subject: [PATCH] Only style Ui.ImageCrop on focus when it's not embedded. --- source/ImageCrop.mint | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/ImageCrop.mint b/source/ImageCrop.mint index 34c79f4..233983b 100644 --- a/source/ImageCrop.mint +++ b/source/ImageCrop.mint @@ -45,10 +45,13 @@ component Ui.ImageCrop { } &:focus { - border-color: var(--input-focus-border); - background: var(--input-focus-color); - color: var(--input-focus-text); outline: 0; + + if (!embedded) { + border-color: var(--input-focus-border); + background: var(--input-focus-color); + color: var(--input-focus-text); + } } }