Skip to content

Commit ee8ab23

Browse files
Reduce gap betwel label and labelSuffix (#195)
1 parent 627b752 commit ee8ab23

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.changeset/shaggy-apricots-care.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': patch
3+
---
4+
5+
Reduced gap between `label` and `labelSuffix` in `<Field />`

src/components/forms/FieldWrapper.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function FieldWrapper(props: CubeFieldWrapperProps, ref) {
136136
{...labelProps}
137137
>
138138
<Flex placeContent="baseline space-between" width="100%">
139-
<Space placeItems="center" gap="1x">
139+
<Space placeItems="center" gap="0.25x">
140140
<div>{label}</div>
141141

142142
{tooltip ? (
@@ -145,7 +145,9 @@ function FieldWrapper(props: CubeFieldWrapperProps, ref) {
145145
title={tooltip}
146146
width="initial max-content 40x"
147147
>
148-
<InfoCircleOutlined style={{ color: 'var(--primary-color)' }} />
148+
<InfoCircleOutlined
149+
style={{ color: 'var(--primary-color)', margin: '0 4px' }}
150+
/>
149151
</TooltipProvider>
150152
) : null}
151153

0 commit comments

Comments
 (0)