Skip to content

Commit

Permalink
fix: Use an ::after element for selection border (#239)
Browse files Browse the repository at this point in the history
This fixes an issue with outline and selection borders
  • Loading branch information
nielslyngsoe authored Jun 23, 2022
1 parent 48c30b6 commit 8a9d4f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/uui-table/lib/uui-table-row.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export class UUITableRowElement extends SelectOnlyMixin(
cursor: pointer;
}
:host([selected]) {
:host([selected])::after {
content: '';
position: absolute;
inset: 0;
outline: 2px solid
var(--uui-table-row-color-selected, var(--uui-color-selected));
outline-offset: -3px;
Expand Down

0 comments on commit 8a9d4f1

Please sign in to comment.