From 65138c601be2d8c759fbfe562f1acebc0b4a1cce Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 1 Aug 2024 13:02:59 +0200 Subject: [PATCH] =?utf8?q?Fix=20the=20browser=E2=80=99s=20focus=20indicato?= =?utf8?q?r=20to=20appear=20briefly=20when=20closing?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This was not possible pre-6.0 due to the indicator being faded out. This was changed in 6.0 by forcing dialogs to be removed immediately to improve the perceived responsiveness. See https://www.woltlab.com/community/thread/307093-preview-post-close-bug/ --- wcfsetup/install/files/style/ui/dialog.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wcfsetup/install/files/style/ui/dialog.scss b/wcfsetup/install/files/style/ui/dialog.scss index a871444e31..0a09771149 100644 --- a/wcfsetup/install/files/style/ui/dialog.scss +++ b/wcfsetup/install/files/style/ui/dialog.scss @@ -84,9 +84,7 @@ } &[aria-hidden="true"] { - /* Child elements with `visibility: visible` will not be visually rendered, but pointer events are recognized. */ - pointer-events: none; - visibility: hidden; + display: none; } &[aria-hidden="false"] ~ .dialogContainer[aria-hidden="false"] { -- 2.20.1