Skip to content

Commit 1557848

Browse files
committed
Change position on <tr> elements
1 parent dfa5fdb commit 1557848

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

resources/sass/core/reset.scss

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -464,15 +464,9 @@ blockquote {
464464
> tbody,
465465
> tfoot {
466466
> tr {
467-
// https://mtsknn.fi/blog/relative-tr-in-safari/
468467
// Safari doesn't support position: relative on <tr> elements
469-
position: relative;
470-
transform: translate(0);
471-
clip-path: inset(0);
472-
:focus-within {
473-
outline-offset: -2px; /* Needs to be negative because of the `clip-path` above */
474-
}
475-
468+
position: sticky;
469+
overflow: clip;
476470
> td {
477471
padding: 8px 15px;
478472
border-top: 1px solid $table-border-color;

0 commit comments

Comments
 (0)