Skip to content

Commit b5197ea

Browse files
authored
fix: FormField label margin too large, button reset (#521)
1 parent 49c65e0 commit b5197ea

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/components/FormField.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ function FormFieldRef(
111111
fontWeight="600"
112112
flexShrink={0}
113113
flexGrow={1}
114+
margin={0}
114115
{...labelProps}
115116
>
116117
{label}

src/stories/FormField.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,15 @@ export const Caption = AllSizesTemplate.bind({})
142142

143143
Caption.args = {
144144
label: 'Password',
145+
caption: 'A short caption',
145146
}
146147

147148
export const LongCaption = AllSizesTemplate.bind({})
148149

149150
LongCaption.args = {
150151
label: 'Label',
152+
caption:
153+
'This will probably truncate, because it is ever so so longer than usual.',
151154
}
152155

153156
export const HintText = AllSizesTemplate.bind({})

src/theme/resets.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ export const resetPartials = {
99
padding: 0,
1010
font: 'inherit',
1111
cursor: 'pointer',
12-
outline: 'inherit',
12+
outline: 'unset',
1313
alignItems: 'unset',
14+
appearance: 'none',
1415
},
1516
list: {
1617
margin: 0,

0 commit comments

Comments
 (0)