Skip to content

Commit

Permalink
style: #560 #561 (#562)
Browse files Browse the repository at this point in the history
* fix: #560 radio text margin

* fix: #561 tree and treeSelect checkbox border-radius
  • Loading branch information
liuxy0551 authored Apr 30, 2024
1 parent 1e37966 commit de77d1f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions theme/dt-theme/dark/tree.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.ant-tree-checkbox-inner {
background-color: #11121C;
border-color: #363B59;
border-radius: 2px;
}
.ant-tree-checkbox-checked .ant-tree-checkbox-inner {
background-color: @primaryColor;
Expand Down
4 changes: 4 additions & 0 deletions theme/dt-theme/default/radio.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
align-items: center;
line-height: 16px;
padding-top: 0.4em;
margin-right: 14px;
.ant-radio {
top: 0;
}
span.ant-radio + * {
padding: 0 10px;
}
.ant-radio-disabled {
.ant-radio-inner::after {
background-color: @black_border;
Expand Down
3 changes: 3 additions & 0 deletions theme/dt-theme/default/tree.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
}
.ant-tree-checkbox {
margin: 8px 8px 0 0;
.ant-tree-checkbox-inner {
border-radius: 2px;
}
}
.ant-tree-node-content-wrapper {
line-height: 32px;
Expand Down
3 changes: 3 additions & 0 deletions theme/dt-theme/default/treeselect.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
.ant-select-tree-treenode {
.ant-select-tree-checkbox {
margin: 8px 8px 0 0;
.ant-select-tree-checkbox-inner {
border-radius: 2px;
}
}
}
}
Expand Down

0 comments on commit de77d1f

Please sign in to comment.