From 7c9f994f9d34d7a933b79dfe0d7e57281a86bd32 Mon Sep 17 00:00:00 2001 From: Leonard Burton Date: Tue, 14 Jan 2025 15:37:46 +0900 Subject: [PATCH] Added rules for spacing require dot --- packages/ui-lib/src/Form/atoms/Label.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/ui-lib/src/Form/atoms/Label.tsx b/packages/ui-lib/src/Form/atoms/Label.tsx index 6949e40a..1fc9886c 100644 --- a/packages/ui-lib/src/Form/atoms/Label.tsx +++ b/packages/ui-lib/src/Form/atoms/Label.tsx @@ -3,6 +3,11 @@ import styled, { css } from 'styled-components'; import { TypeLabelDirection } from '..'; const LabelText = styled.span<{ required?: boolean }>` + display: flex; + flex: 1; + align-items: center; + gap: 8px; + ${({required}) => required && css` &::after { content: '';