Skip to content

Commit

Permalink
style(select): remove unused line height calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
aojunhao123 committed Feb 25, 2025
1 parent 4edd7d5 commit 9132192
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions components/select/style/single.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ import type { SelectToken } from './token';
function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
const { componentCls, inputPaddingHorizontalBase, borderRadius } = token;

const selectHeightWithoutBorder = token
.calc(token.controlHeight)
.sub(token.calc(token.lineWidth).mul(2))
.equal();

const suffixCls = suffix ? `${componentCls}-${suffix}` : '';

return {
Expand Down Expand Up @@ -45,7 +40,6 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
`]: {
display: 'block',
padding: 0,
lineHeight: unit(selectHeightWithoutBorder),
transition: `all ${token.motionDurationSlow}, visibility 0s`,
alignSelf: 'center',
},
Expand Down Expand Up @@ -96,9 +90,6 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
[`${componentCls}-selection-search-input`]: {
fontSize: token.fontSize,
},
'&:after': {
lineHeight: unit(selectHeightWithoutBorder),
},
},
},

Expand Down

0 comments on commit 9132192

Please sign in to comment.