Skip to content

Commit

Permalink
perf: optimize multiple select options style (#46646)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc committed Dec 27, 2023
1 parent ae38f1e commit b49fb85
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/select/style/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ const genSingleStyle: GenerateStyle<SelectToken> = (token) => {
[`${selectItemCls}-option-state`]: {
color: token.colorPrimary,
},

[`&:has(+ ${selectItemCls}-option-selected:not(${selectItemCls}-option-disabled))`]: {
borderEndStartRadius: 0,
borderEndEndRadius: 0,

[`& + ${selectItemCls}-option-selected:not(${selectItemCls}-option-disabled)`]: {
borderStartStartRadius: 0,
borderStartEndRadius: 0,
},
},
},
'&-disabled': {
[`&${selectItemCls}-option-selected`]: {
Expand Down

0 comments on commit b49fb85

Please sign in to comment.