From a393306a714913f3c075c70b855151e4f8510f3d Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Thu, 14 Aug 2025 15:38:58 -0700 Subject: [PATCH] fix: update swal input visibility logic - Modified CSS in jquery.sweetalert.css to refine the visibility of the default SweetAlert input fields. The new rule ensures that inputs are hidden unless the class 'show-input' is present on the alert or 'swal-input-show' is applied to the input itself. --- emhttp/plugins/dynamix/styles/jquery.sweetalert.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/emhttp/plugins/dynamix/styles/jquery.sweetalert.css b/emhttp/plugins/dynamix/styles/jquery.sweetalert.css index 44cbe4f53..0695928bf 100644 --- a/emhttp/plugins/dynamix/styles/jquery.sweetalert.css +++ b/emhttp/plugins/dynamix/styles/jquery.sweetalert.css @@ -178,11 +178,6 @@ pre#swaltext { } } - /* this is a hack to prevent the default SWAL input from being shown, but allow the ones we want to be show */ - input[type="text"]:not(.swal-input-show) { - display: none; - } - input:focus { outline: none; box-shadow: 0px 0px 3px #c4e6f5; @@ -484,6 +479,11 @@ pre#swaltext { } } +/* this is a hack to prevent the default SWAL input from being shown unless the class show-input is present on the swal or the swal-input-show class is present on the input */ +.sweet-alert:not(.show-input) input[type="text"]:not(.swal-input-show) { + display: none; +} + /* Typography */ .sweet-alert h2 { color: #575757;