mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
chore(deps): update dependency nwsapi to v2.2.16 (#51844)
* chore(deps): update dependency nwsapi to v2.2.16 * refactor: selected item radius style code * fix * Apply suggestions from code review Signed-off-by: afc163 <afc163@gmail.com> * fix * fix * fix * fix * fix * fix * fix * fix role in select --------- Signed-off-by: afc163 <afc163@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
92d8088669
commit
c27582ec13
@ -19,6 +19,7 @@ const App: React.FC = () => {
|
||||
{ label: 'Disabled', value: 'disabled' },
|
||||
{ label: 'Bamboo', value: 'bamboo' },
|
||||
]}
|
||||
virtual={false}
|
||||
/>
|
||||
</Space>
|
||||
);
|
||||
|
@ -38,6 +38,7 @@ const genSingleStyle: GenerateStyle<SelectToken> = (token) => {
|
||||
const slideUpLeaveActive = `&${antCls}-slide-up-leave${antCls}-slide-up-leave-active`;
|
||||
|
||||
const dropdownPlacementCls = `${componentCls}-dropdown-placement-`;
|
||||
const selectedItemCls = `${selectItemCls}-option-selected`;
|
||||
|
||||
return [
|
||||
{
|
||||
@ -132,17 +133,8 @@ 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`]: {
|
||||
backgroundColor: token.colorBgContainerDisabled,
|
||||
@ -163,6 +155,17 @@ const genSingleStyle: GenerateStyle<SelectToken> = (token) => {
|
||||
},
|
||||
},
|
||||
|
||||
// https://github.com/ant-design/ant-design/pull/46646
|
||||
[`${selectedItemCls}:has(+ ${selectedItemCls})`]: {
|
||||
borderEndStartRadius: 0,
|
||||
borderEndEndRadius: 0,
|
||||
|
||||
[`& + ${selectedItemCls}`]: {
|
||||
borderStartStartRadius: 0,
|
||||
borderStartEndRadius: 0,
|
||||
},
|
||||
},
|
||||
|
||||
// =========================== RTL ===========================
|
||||
'&-rtl': {
|
||||
direction: 'rtl',
|
||||
|
@ -349,11 +349,9 @@
|
||||
"mode": "npm"
|
||||
},
|
||||
"overrides": {
|
||||
"nwsapi": "2.2.13",
|
||||
"react-intl": "7.0.4"
|
||||
},
|
||||
"resolutions": {
|
||||
"nwsapi": "2.2.13",
|
||||
"react-intl": "7.0.4"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user