Fix the browser’s focus indicator to appear briefly when closing
authorAlexander Ebert <ebert@woltlab.com>
Thu, 1 Aug 2024 11:02:59 +0000 (13:02 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 1 Aug 2024 11:02:59 +0000 (13:02 +0200)
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

index a871444e31df06ce5403e6d3025ee1f7210f5408..0a09771149f8e9a2bbe646f7be79ed10f2ae60d2 100644 (file)
@@ -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"] {