Skip to content

Commit

Permalink
chore: merge styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kouchao committed Aug 17, 2023
1 parent b86162f commit df23d5f
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions components/color-picker/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,7 @@ const genSizeStyle = (token: ColorPickerToken): CSSObject => {
minWidth: controlHeightLG,
height: controlHeightLG,
borderRadius: borderRadiusLG,
[`${componentCls}-color-block`]: {
width: controlHeight,
height: controlHeight,
borderRadius,
},
[`${componentCls}-clear`]: {
[`${componentCls}-color-block, ${componentCls}-clear`]: {
width: controlHeight,
height: controlHeight,
borderRadius,
Expand All @@ -152,12 +147,7 @@ const genSizeStyle = (token: ColorPickerToken): CSSObject => {
minWidth: controlHeightSM,
height: controlHeightSM,
borderRadius: borderRadiusSM,
[`${componentCls}-color-block`]: {
width: controlHeightXS,
height: controlHeightXS,
borderRadius: borderRadiusXS,
},
[`${componentCls}-clear`]: {
[`${componentCls}-color-block, ${componentCls}-clear`]: {
width: controlHeightXS,
height: controlHeightXS,
borderRadius: borderRadiusXS,
Expand Down

0 comments on commit df23d5f

Please sign in to comment.