Fix the handling of `<section>` as the dialog content’s root
authorAlexander Ebert <ebert@woltlab.com>
Sun, 27 Aug 2023 16:24:46 +0000 (18:24 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 27 Aug 2023 16:24:46 +0000 (18:24 +0200)
See https://www.woltlab.com/community/thread/301310-warn-dialog-needs-to-be-unified/

wcfsetup/install/files/style/ui/dialog.scss

index 1e6c331d719e4955a9bca42015f75c1f61163956..c3fdcf95ea488aeeb0ef9b4c9e7b15cc7af629c4 100644 (file)
@@ -425,7 +425,7 @@ html[data-color-scheme="dark"] .dialog::backdrop {
        }
 
        > .section:first-child,
-       > form > .section:first-child {
+       > :is(form, section) > .section:first-child {
                margin-top: 0;
        }