You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{/* Note this is mainly for column's without a dropdown menu. If there is a dropdown menu, the button is styled to have a focus ring for simplicity
504
507
(no need to juggle showing this focus ring if focus is on the menu button and not if it is on the resizer) */}
505
508
{/* Separate absolutely positioned element because appyling the ring on the column directly via outline means the ring's required borderRadius will cause the bottom gray border to curve as well */}
// TODO: problem with having the checkbox cell itself use the row background color directly instead
924
-
// of having a separate white rectangle div base below a div with the row background color set above it as a mask
925
-
// is that it doesn't come out as the same color as the other cells because the base below the sticky cell will be the blue of the
926
-
// other cells, not the same white base. If I could convert informative-900/10 (and the rest of the rowBackgroundColors) to an equivalent without any opacity
927
-
// then this would be possible. Currently waiting request for Spectrum to provide tokens for these equivalent values
928
-
// backgroundColor: '--rowBackgroundColor'
930
+
borderBottomWidth: 0,
931
+
backgroundColor: '--rowBackgroundColor'
929
932
});
930
933
931
934
constcellContent=style({
@@ -952,15 +955,7 @@ const cellContent = style({
952
955
margin: {
953
956
default: -4,
954
957
isSticky: 0
955
-
}
956
-
});
957
-
958
-
constcellBackground=style({
959
-
position: 'absolute',
960
-
top: 0,
961
-
bottom: 0,
962
-
right: 0,
963
-
left: 0,
958
+
},
964
959
backgroundColor: {
965
960
default: 'transparent',
966
961
isSticky: '--rowBackgroundColor'
@@ -996,46 +991,30 @@ export function Cell(props: CellProps) {
996
991
{...otherProps}>
997
992
{({isFocusVisible})=>(
998
993
<>
999
-
{/*
1000
-
// TODO: problem with having the checkbox cell itself use the row background color directly instead
1001
-
of having a separate white rectangle div base below a div with the row background color set above it as a mask
1002
-
is that it doesn't come out as the same color as the other cells because the base below the sticky cell when other selected cells are scrolled below it will be the blue of the
1003
-
other cells, not the same white base. If I could convert informative-900/10 (and the rest of the rowBackgroundColors) to an equivalent without any opacity
1004
-
then I could do away with this styling. To reproduce this, comment out the stickyCell gray-25, get rid of the below div and apply backgroundColor: '--rowBackgroundColor' to checkboxCellStyle.
1005
-
Having the CellFocusRing here instead of applying a outline on the cell directly also makes it NOT overlap with the border (can be remedied with a -3px outline offset) and applying a border radius to get the curved outline focus ring messes
1006
-
with the divider rendered on the cell since those are also borders
0 commit comments