Skip to content

Commit 823865f

Browse files
committed
fix(vars): further styling vars for omnitable styling for themes
1 parent abd9b99 commit 823865f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cosmoz-omnitable-styles.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const checkbox = css`
1414
user-select: none;
1515
cursor: pointer;
1616
display: inline-block;
17-
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.16) inset;
17+
box-shadow: 0 0 0 2px
18+
var(--cosmoz-omnitable-checkbox-shadow-color, rgba(0, 0, 0, 0.16)) inset;
1819
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
1920
vertical-align: middle;
2021
transition: background-color 140ms;
@@ -54,7 +55,9 @@ const checkbox = css`
5455
5556
.checkbox:hover {
5657
box-shadow:
57-
0 0 0 2px rgba(0, 0, 0, 1) inset,
58+
0 0 0 2px
59+
var(--cosmoz-omnitable-checkbox-shadow-color-hover, rgba(0, 0, 0, 1))
60+
inset,
5861
0 0 2px 6px #2021240f;
5962
}
6063
@@ -450,7 +453,8 @@ export default css`
450453
}
451454
.groupRow:hover .checkbox:not(:checked):not(:hover),
452455
.itemRow:hover .checkbox:not(:checked):not(:hover) {
453-
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.54) inset;
456+
box-shadow: 0 0 0 2px var(--cosmoz-omnitable-checkbox-shadow-color-not-hover, rgba(0, 0, 0, 0.54))
457+
inset;
454458
}
455459
.groupRow:hover .expand:not(:hover),
456460
.itemRow:hover .expand:not(:hover) {

0 commit comments

Comments
 (0)