Enforce the default box-sizing of buttons
authorAlexander Ebert <ebert@woltlab.com>
Thu, 6 Apr 2023 12:09:30 +0000 (14:09 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 6 Apr 2023 12:09:30 +0000 (14:09 +0200)
The `inherit` value does not work well with `all: unset`, causing it to inherit the default value from the UA style sheet which is `content-box` instead of `border-box`.

Fixes #5402

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

index 780b1952e0567057075ebfb0476ba71a9813536c..387afc1d86b1dc9d93ec98e0b7b8d1ad3df7e640 100644 (file)
@@ -1,7 +1,7 @@
 button {
        all: unset;
 
-       box-sizing: inherit;
+       box-sizing: border-box;
        min-width: 0;
        -webkit-user-select: none;
        user-select: none;