fix: Select underlined height (#55607)

Co-authored-by: furyzhao <furyzhao@tencent.com>
This commit is contained in:
ustcfury
2025-11-06 10:21:35 +08:00
committed by GitHub
parent 8471922710
commit 2f6846d2a5

View File

@@ -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`]: {