Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Table: fixes row focus styles (safari)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinkertrain committed Jun 20, 2022
1 parent fea1250 commit 4751c2e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/Table/Table.css.js
Expand Up @@ -74,10 +74,19 @@ export const TableUI = styled('table')`
tbody tr:focus {
background-color: ${props => props.theme.bgFocus};
box-shadow: inset 3px 0 ${props => props.theme.bgFocusIndicator};
outline: 0;
}
tbody tr:focus > td:first-child {
background: linear-gradient(
to right,
${props => props.theme.bgFocusIndicator},
${props => props.theme.bgFocusIndicator} 3px,
transparent 3px,
transparent 100%
);
}
th,
td {
/* Borders: Rows */
Expand Down

0 comments on commit 4751c2e

Please sign in to comment.