소스 검색

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 {
+        box-sizing: content-box;
         content: "";
         border: 2px solid var(--checkbox-checked-icon-color);
         border-left: 0;