mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
fix: select check & remove icon align (#42513)
This commit is contained in:
parent
2ff5feb1bd
commit
2f9a8c7dde
@ -1,5 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { SelectToken } from '.';
|
||||
import { resetComponent, textEllipsis } from '../../style';
|
||||
import {
|
||||
initMoveMotion,
|
||||
initSlideMotion,
|
||||
@ -9,7 +10,6 @@ import {
|
||||
slideUpOut,
|
||||
} from '../../style/motion';
|
||||
import type { GenerateStyle } from '../../theme/internal';
|
||||
import { resetComponent, textEllipsis } from '../../style';
|
||||
|
||||
const genItemStyle: GenerateStyle<SelectToken, CSSObject> = (token) => {
|
||||
const { controlPaddingHorizontal } = token;
|
||||
@ -112,6 +112,8 @@ const genSingleStyle: GenerateStyle<SelectToken> = (token) => {
|
||||
|
||||
'&-state': {
|
||||
flex: 'none',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
},
|
||||
|
||||
[`&-active:not(${selectItemCls}-option-disabled)`]: {
|
||||
|
@ -120,7 +120,8 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
|
||||
'&-remove': {
|
||||
...resetIcon(),
|
||||
|
||||
display: 'inline-block',
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
color: token.colorIcon,
|
||||
fontWeight: 'bold',
|
||||
fontSize: 10,
|
||||
|
Loading…
Reference in New Issue
Block a user