fix(base): show cell focus ring only while the grid body itself is focused

This commit is contained in:
Philipinho
2026-06-15 08:05:14 +01:00
parent 07bfa3ba73
commit 6a6de54c92
@@ -241,7 +241,7 @@
padding: 0; padding: 0;
} }
.bodyGrid:focus-within .cellFocused { .bodyGrid:focus .cellFocused {
outline: 2px solid var(--mantine-color-blue-5); outline: 2px solid var(--mantine-color-blue-5);
outline-offset: -2px; outline-offset: -2px;
z-index: 1; z-index: 1;
@@ -498,10 +498,10 @@
.rowSelected .rowNumberCheckbox { .rowSelected .rowNumberCheckbox {
display: inline-flex; display: inline-flex;
} }
.bodyGrid:focus-within .cellFocused .rowNumberIndex { .bodyGrid:focus .cellFocused .rowNumberIndex {
display: none; display: none;
} }
.bodyGrid:focus-within .cellFocused .rowNumberCheckbox { .bodyGrid:focus .cellFocused .rowNumberCheckbox {
display: inline-flex; display: inline-flex;
} }
.rowSelected .cell { .rowSelected .cell {