From 9401576b5380bdf411343ff494e3d9a9bcfe0f52 Mon Sep 17 00:00:00 2001 From: Haoxin Yang <1810849666@qq.com> Date: Mon, 27 Nov 2023 10:07:38 +0800 Subject: [PATCH 1/4] fix: form item label top margin bottom use s --- src/form/form-item/form-item.component.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/form/form-item/form-item.component.scss b/src/form/form-item/form-item.component.scss index 41da1a2c1..46a36287f 100644 --- a/src/form/form-item/form-item.component.scss +++ b/src/form/form-item/form-item.component.scss @@ -24,7 +24,7 @@ $form-item-width: ( .aui-form-item__label-wrapper { line-height: use-var(line-height-m); - margin-bottom: use-var(spacing-xs); + margin-bottom: use-var(spacing-s); &:after { display: none; From 6b739977a4479b4b98b0565439393ff619a67427 Mon Sep 17 00:00:00 2001 From: Mrlang <1810849666@qq.com> Date: Mon, 27 Nov 2023 10:12:16 +0800 Subject: [PATCH 2/4] Create gorgeous-snakes-dance.md --- .changeset/gorgeous-snakes-dance.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/gorgeous-snakes-dance.md diff --git a/.changeset/gorgeous-snakes-dance.md b/.changeset/gorgeous-snakes-dance.md new file mode 100644 index 000000000..1b0349977 --- /dev/null +++ b/.changeset/gorgeous-snakes-dance.md @@ -0,0 +1,5 @@ +--- +"@alauda/ui": patch +--- + +fix: form item label top margin bottom use s From 61bfcf2b026537089ca7956901a323717577a2eb Mon Sep 17 00:00:00 2001 From: Haoxin Yang <1810849666@qq.com> Date: Fri, 8 Dec 2023 10:38:23 +0800 Subject: [PATCH 3/4] fix: vertical align label line height --- src/form/form-item/form-item.component.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/form/form-item/form-item.component.scss b/src/form/form-item/form-item.component.scss index 46a36287f..51a2509f2 100644 --- a/src/form/form-item/form-item.component.scss +++ b/src/form/form-item/form-item.component.scss @@ -30,6 +30,10 @@ $form-item-width: ( display: none; } } + + .aui-form-item__label { + line-height: use-var(line-height-m); + } } &__label-wrapper { From c9c07824162482879fc072fc1555772268b4375b Mon Sep 17 00:00:00 2001 From: Haoxin Yang <1810849666@qq.com> Date: Fri, 8 Dec 2023 11:35:37 +0800 Subject: [PATCH 4/4] chore: merge optmize selector --- src/form/form-item/form-item.component.scss | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/form/form-item/form-item.component.scss b/src/form/form-item/form-item.component.scss index 51a2509f2..26ae48ab6 100644 --- a/src/form/form-item/form-item.component.scss +++ b/src/form/form-item/form-item.component.scss @@ -22,17 +22,17 @@ $form-item-width: ( &--top { flex-direction: column; - .aui-form-item__label-wrapper { + .aui-form-item__label { line-height: use-var(line-height-m); - margin-bottom: use-var(spacing-s); - &:after { - display: none; - } - } + &-wrapper { + line-height: use-var(line-height-m); + margin-bottom: use-var(spacing-s); - .aui-form-item__label { - line-height: use-var(line-height-m); + &:after { + display: none; + } + } } }