Skip to content

Commit ef8eef0

Browse files
authored
Merge pull request #1616 from sheinsight/fix/checkbox-style-in-treeselect
fix: 修复 Checkbox 在 TreeSelect 中的样式问题
2 parents b8f8627 + a481eea commit ef8eef0

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sheinx",
33
"private": true,
4-
"version": "3.9.9-beta.9",
4+
"version": "3.9.9-beta.10",
55
"description": "A react library developed with sheinx",
66
"module": "dist/index.js",
77
"types": "dist/index.d.ts",

packages/shineout-style/src/checkbox/checkbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const checkboxStyle: JsStyles<keyof CheckboxClasses> = {
3232
boxSizing: 'border-box',
3333
width: token.checkboxIconSize,
3434
height: token.checkboxIconSize,
35-
marginTop: 4,
35+
marginTop: 'var(--soui-checkbox-indicator-margin-top, 4px)',
3636
flexShrink: 0,
3737
'$wrapperSmall &': {
3838
width: token.checkboxSmallIconSize,

packages/shineout-style/src/tree/tree.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,9 @@ const treeStyle: JsStyles<TreeClassType> = {
286286
},
287287
checkbox: {
288288
'&[class*="checkbox-wrapper"]': {
289-
height: 26,
290-
alignSelf: 'flex-start',
291289
marginRight: Token.treeCheckboxMarginX,
290+
'--soui-checkbox-indicator-margin-top': '0px',
292291
},
293-
'$sizeLarge &': {
294-
marginTop: 4,
295-
}
296292
},
297293
text: {
298294
cursor: 'pointer',

0 commit comments

Comments
 (0)