Skip to content

Commit

Permalink
Reduce gap betwel label and labelSuffix (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFlashAccount authored Aug 23, 2022
1 parent 627b752 commit ee8ab23
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-apricots-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cube-dev/ui-kit': patch
---

Reduced gap between `label` and `labelSuffix` in `<Field />`
6 changes: 4 additions & 2 deletions src/components/forms/FieldWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function FieldWrapper(props: CubeFieldWrapperProps, ref) {
{...labelProps}
>
<Flex placeContent="baseline space-between" width="100%">
<Space placeItems="center" gap="1x">
<Space placeItems="center" gap="0.25x">
<div>{label}</div>

{tooltip ? (
Expand All @@ -145,7 +145,9 @@ function FieldWrapper(props: CubeFieldWrapperProps, ref) {
title={tooltip}
width="initial max-content 40x"
>
<InfoCircleOutlined style={{ color: 'var(--primary-color)' }} />
<InfoCircleOutlined
style={{ color: 'var(--primary-color)', margin: '0 4px' }}
/>
</TooltipProvider>
) : null}

Expand Down

0 comments on commit ee8ab23

Please sign in to comment.