Browse Source

Add box-sizing: content-box for compatibility (#1229)

Some CSS resets (including Bootstrap's) contain *::after{ box-sizing: border-box; }

This breaks the checkbox component style. Therefor add box-sizing: content-box explicitly to increase compatibility.
boyd91 8 năm trước cách đây
mục cha
commit
ec2b62d93e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      packages/theme-default/src/checkbox.css

+ 1 - 0
packages/theme-default/src/checkbox.css

@@ -36,6 +36,7 @@
       }
 
       &::after {
+        box-sizing: content-box;
         content: "";
         border: 2px solid var(--checkbox-checked-icon-color);
         border-left: 0;