Skip to content

Commit 8a9d4f1

Browse files
authored
fix: Use an ::after element for selection border (#239)
This fixes an issue with outline and selection borders
1 parent 48c30b6 commit 8a9d4f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/uui-table/lib/uui-table-row.element.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ export class UUITableRowElement extends SelectOnlyMixin(
2929
cursor: pointer;
3030
}
3131
32-
:host([selected]) {
32+
:host([selected])::after {
33+
content: '';
34+
position: absolute;
35+
inset: 0;
3336
outline: 2px solid
3437
var(--uui-table-row-color-selected, var(--uui-color-selected));
3538
outline-offset: -3px;

0 commit comments

Comments
 (0)