Add support for `<button>` inside `.dropdownMenu`
authorAlexander Ebert <ebert@woltlab.com>
Sat, 16 Sep 2023 13:34:02 +0000 (15:34 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 19 Sep 2023 12:25:55 +0000 (14:25 +0200)
wcfsetup/install/files/style/bootstrap/mixin/dropdownMenu.scss

index 9608131a19c3a7e7a1a76a13cfe4a7b749b4e04c..58334d7cbad13b6409791a29a4c809a7cabcd56d 100644 (file)
@@ -33,7 +33,7 @@
                        background-color: var(--wcfDropdownBackgroundActive);
                        color: var(--wcfDropdownLinkActive);
 
-                       > a {
+                       > :is(a, button) {
                                color: var(--wcfDropdownLinkActive);
                        }
                }
@@ -66,8 +66,7 @@
                        }
                }
 
-               > a,
-               > span {
+               > :is(a, button, span) {
                        clear: both;
                        cursor: pointer;
                        display: block;
@@ -86,7 +85,7 @@
                        }
                }
 
-               > a {
+               > :is(a, button) {
                        color: var(--wcfDropdownLink);
                }
 
@@ -94,7 +93,7 @@
                        display: block;
                }
 
-               > a + span.badge {
+               > :is(a, button) + span.badge {
                        display: none;
                }