From 2f6846d2a5119fa69233bccb3c2bc96cc6efd9f4 Mon Sep 17 00:00:00 2001 From: ustcfury <94168407+ustcfury@users.noreply.github.com> Date: Thu, 6 Nov 2025 10:21:35 +0800 Subject: [PATCH] fix: Select underlined height (#55607) Co-authored-by: furyzhao --- components/select/style/variants.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/select/style/variants.ts b/components/select/style/variants.ts index a653710a0f..a7b942568e 100644 --- a/components/select/style/variants.ts +++ b/components/select/style/variants.ts @@ -242,20 +242,20 @@ const genBaseUnderlinedStyle = ( return { [`&:not(${componentCls}-customize-input) ${componentCls}-selector`]: { - borderWidth: `0 0 ${unit(token.lineWidth)} 0`, - borderStyle: `none none ${token.lineType} none`, - borderColor: options.borderColor, + borderWidth: `${unit(token.lineWidth)} 0`, + borderStyle: `${token.lineType} none`, + borderColor: `transparent transparent ${options.borderColor} transparent`, background: token.selectorBg, borderRadius: 0, }, [`&:not(${componentCls}-disabled):not(${componentCls}-customize-input):not(${antCls}-pagination-size-changer)`]: { [`&:hover ${componentCls}-selector`]: { - borderColor: options.hoverBorderHover, + borderColor: `transparent transparent ${options.hoverBorderHover} transparent`, }, [`${componentCls}-focused& ${componentCls}-selector`]: { - borderColor: options.activeBorderColor, + borderColor: `transparent transparent ${options.activeBorderColor} transparent`, outline: 0, }, [`${componentCls}-prefix`]: {