diff --git a/src/components/Label/Label.styles.ts b/src/components/Label/Label.styles.ts index 8df71119..2c9a3f54 100644 --- a/src/components/Label/Label.styles.ts +++ b/src/components/Label/Label.styles.ts @@ -20,6 +20,7 @@ export const defaultConfig = { display: 'flex', alignItems: 'center', minHeight: '$size-xSmall', + justifyContent: 'center', }, optional: { color: '$color-content-tertiary', diff --git a/src/components/Label/Label.tsx b/src/components/Label/Label.tsx index 54d4af35..baf1f746 100644 --- a/src/components/Label/Label.tsx +++ b/src/components/Label/Label.tsx @@ -4,6 +4,7 @@ import { type FC, useMemo } from 'react'; import type { LabelProps } from './Label.props'; import { stylesBuilder } from './stylesBuilder'; import { Button } from '../Button'; +import { Tooltip } from '../Tooltip'; import { tet } from '@/tetrisly'; import type { MarginProps } from '@/types/MarginProps'; @@ -26,11 +27,14 @@ export const Label: FC = ({ {optional} )} - {/* TODO: add tooltip instead of bare icon, when we get one */} {tooltip && ( - + - + )} {!!action && (