From: Alexander Ebert Date: Thu, 1 Aug 2024 11:02:59 +0000 (+0200) Subject: Fix the browser’s focus indicator to appear briefly when closing X-Git-Tag: 6.1.0_Alpha_1~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=65138c601be2d8c759fbfe562f1acebc0b4a1cce;p=GitHub%2FWoltLab%2FWCF.git Fix the browser’s focus indicator to appear briefly when closing 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/ --- 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"] {