Skip to content

Commit 67b334a

Browse files
committed
fix(eo-next-table): set intermediate checkbox style as v2
1 parent 02d9968 commit 67b334a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

bricks/advanced/src/next-table/styles.shadow.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,38 @@
194194
.invisible {
195195
visibility: hidden;
196196
}
197+
198+
.next-table
199+
.ant-table
200+
.ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover
201+
.ant-checkbox-checked:not(.ant-checkbox-disabled)
202+
.ant-checkbox-inner,
203+
.next-table
204+
.ant-table
205+
.ant-checkbox-wrapper-checked:not(.ant-checkbox-wrapper-disabled):hover
206+
.ant-checkbox-inner,
207+
.next-table
208+
.ant-checkbox.ant-checkbox-checked:not(.ant-checkbox-disabled):hover
209+
.ant-checkbox-inner {
210+
background-color: var(--antd-checkbox-color);
211+
border-color: var(--antd-checkbox-color);
212+
}
213+
214+
.next-table .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner {
215+
background-color: var(--antd-checkbox-color) !important;
216+
border-color: var(--antd-checkbox-color) !important;
217+
}
218+
219+
.next-table
220+
.ant-checkbox.ant-checkbox-indeterminate
221+
.ant-checkbox-inner::after {
222+
top: 50%;
223+
left: 50%;
224+
width: 8px;
225+
height: 2px;
226+
background-color: #fff;
227+
border: 0;
228+
transform: translate(-50%, -50%) scale(1);
229+
opacity: 1;
230+
content: " ";
231+
}

0 commit comments

Comments
 (0)