Skip to content

Commit 04ae570

Browse files
committed
fix: xxs icon button padding
1 parent 4a04713 commit 04ae570

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Shared/Components/Button/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>
2828
} as const
2929

3030
export const ICON_BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string> = {
31-
[ComponentSizeType.xxs]: 'p-2',
31+
[ComponentSizeType.xxs]: 'p-1',
3232
[ComponentSizeType.xs]: 'p-3',
3333
[ComponentSizeType.small]: 'p-5',
3434
[ComponentSizeType.medium]: 'p-7',

src/Shared/Components/FormFieldWrapper/FormFieldLabel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const FormFieldLabel = ({
3838

3939
const labelId = getFormLabelElementId(inputId)
4040
const isRowLayout = layout === 'row'
41-
const showTooltip = !!labelTooltipConfig?.content
41+
const showTooltip = isRowLayout && !!labelTooltipConfig?.content
4242

4343
const wrapWithTooltip = (children: ReactElement) => (
4444
<Tooltip

0 commit comments

Comments
 (0)