浏览代码

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 年之前
父节点
当前提交
ec2b62d93e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/theme-default/src/checkbox.css

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

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