Skip to content

Commit 1f6c2fe

Browse files
authored
fix(clerk-js): Set box-sizing to border-box by default (clerk#2762)
* fix(clerk-js): Use border-box box-sizing for inputs and all elements by default instead of inherit * chore(repo): Add Changeset
1 parent 8daf845 commit 1f6c2fe

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.changeset/light-doors-invent.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/clerk-js/src/ui/primitives/Box.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { applyDataStateProps } from './applyDataStateProps';
66

77
const { applyVariants } = createVariants(() => ({
88
base: {
9-
boxSizing: 'inherit',
9+
boxSizing: 'border-box',
1010
},
1111
variants: {},
1212
}));

packages/clerk-js/src/ui/primitives/Input.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useInput } from './hooks/useInput';
77

88
const { applyVariants, filterProps } = createVariants((theme, props) => ({
99
base: {
10-
boxSizing: 'inherit',
10+
boxSizing: 'border-box',
1111
margin: 0,
1212
padding: `${theme.space.$1x5} ${theme.space.$3}`,
1313
backgroundColor: theme.colors.$colorInputBackground,

0 commit comments

Comments
 (0)