Skip to content

Commit 7a94908

Browse files
authored
fix(webapp): Fix for missing table rows divider lines in safari (#2873)
1 parent 768206c commit 7a94908

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

apps/webapp/app/components/primitives/Table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const TableHeader = forwardRef<HTMLTableSectionElement, TableHeaderProps>
8080
<thead
8181
ref={ref}
8282
className={cn(
83-
"sticky top-0 z-10 after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-grid-bright",
83+
"safari-only sticky top-0 z-10 after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-grid-bright supports-[(-webkit-hyphens:none)]:after:content-none",
8484
variants[variant].header,
8585
className
8686
)}
@@ -250,7 +250,7 @@ export const TableCell = forwardRef<HTMLTableCellElement, TableCellProps>(
250250
<td
251251
ref={ref}
252252
className={cn(
253-
"text-xs text-charcoal-400 has-[[tabindex='0']:focus]:before:absolute has-[[tabindex='0']:focus]:before:-top-px has-[[tabindex='0']:focus]:before:left-0 has-[[tabindex='0']:focus]:before:h-px has-[[tabindex='0']:focus]:before:w-3 has-[[tabindex='0']:focus]:before:bg-grid-dimmed 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",
253+
"safari-only text-xs text-charcoal-400 has-[[tabindex='0']:focus]:before:absolute has-[[tabindex='0']:focus]:before:-top-px has-[[tabindex='0']:focus]:before:left-0 has-[[tabindex='0']:focus]:before:h-px has-[[tabindex='0']:focus]:before:w-3 has-[[tabindex='0']:focus]:before:bg-grid-dimmed 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",
254254
variants[variant].cell,
255255
to || onClick || hasAction ? "cursor-pointer" : "cursor-default px-3 py-3 align-middle",
256256
!to && !onClick && alignmentClassName,

apps/webapp/app/tailwind.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
inherits: false;
1212
}
1313

14+
@supports (-webkit-hyphens: none) {
15+
.safari-only {
16+
@apply border-b border-grid-dimmed;
17+
}
18+
}
19+
1420
@layer base {
1521
* {
1622
@apply border-grid-bright;

0 commit comments

Comments
 (0)