File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
apps/webapp/app/components/primitives Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ const rowHoverStyles = {
168
168
const stickyStyles =
169
169
"sticky right-0 bg-background-dimmed group-hover/table-row:bg-charcoal-750 [&:has(.group-hover\\/table-row\\:block)]:w-auto group-has-[[tabindex='0']:focus]/table-row:bg-background-bright" ;
170
170
171
+ const tabFocusRowDividerStyles =
172
+ "has-[[tabindex='0']:focus]:after:absolute has-[[tabindex='0']:focus]:after:bottom-0 has-[[tabindex='0']:focus]:after:left-0 has-[[tabindex='0']:focus]:after:right-0 has-[[tabindex='0']:focus]:after:h-px has-[[tabindex='0']:focus]:after:bg-grid-dimmed has-[[tabindex='0']:focus]:before:absolute has-[[tabindex='0']:focus]:before:left-0 has-[[tabindex='0']:focus]:before:-top-px has-[[tabindex='0']:focus]:before:h-px has-[[tabindex='0']:focus]:before:w-3 has-[[tabindex='0']:focus]:before:bg-grid-dimmed" ;
173
+
171
174
const isSelectedStyle = "bg-charcoal-750 group-hover:bg-charcoal-750" ;
172
175
173
176
export const TableCell = forwardRef < HTMLTableCellElement , TableCellProps > (
@@ -217,6 +220,7 @@ export const TableCell = forwardRef<HTMLTableCellElement, TableCellProps>(
217
220
isSticky && stickyStyles ,
218
221
isSelected && isSelectedStyle ,
219
222
! isSelected && rowHoverStyles [ rowHoverStyle ] ,
223
+ tabFocusRowDividerStyles ,
220
224
className
221
225
) }
222
226
colSpan = { colSpan }
You can’t perform that action at this time.
0 commit comments