fix(float-button): correct border-radius for grouped and standalone buttons

pull/8121/head
Daria Savinova 2025-04-10 19:29:32 +07:00
parent aa211fd789
commit 4cbbe072c8
1 changed files with 13 additions and 12 deletions

View File

@ -137,19 +137,8 @@ const floatButtonGroupStyle: GenerateStyle<FloatButtonToken, CSSObject> = token
},
[`${groupPrefixCls}-square`]: {
[`${componentCls}-square`]: {
borderRadius: 0,
borderRadius: borderRadiusLG,
padding: 0,
'&:first-child': {
borderStartStartRadius: borderRadiusLG,
borderStartEndRadius: borderRadiusLG,
},
'&:last-child': {
borderEndStartRadius: borderRadiusLG,
borderEndEndRadius: borderRadiusLG,
},
'&:not(:last-child)': {
borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,
},
[`${antCls}-badge`]: {
[`${antCls}-badge-count`]: {
top: -(floatButtonBodyPadding + badgeOffset),
@ -193,6 +182,18 @@ const floatButtonGroupStyle: GenerateStyle<FloatButtonToken, CSSObject> = token
[`${componentCls}-square`]: {
boxShadow: 'none',
padding: floatButtonBodyPadding,
borderRadius: 0,
'&:first-child': {
borderStartStartRadius: borderRadiusLG,
borderStartEndRadius: borderRadiusLG,
},
'&:last-child': {
borderEndStartRadius: borderRadiusLG,
borderEndEndRadius: borderRadiusLG,
},
'&:not(:last-child)': {
borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,
},
[`${componentCls}-body`]: {
width: token.floatButtonBodySize,
height: token.floatButtonBodySize,