Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: possible fix for the cell losing focus when clicking on the border #4080

Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
min-height: var(--cell-height, var(--default-cell-height));
display: flex;
flex-direction: column;
outline-offset: -2px;

&.has-padding {
padding: var(--cell-padding);
Expand All @@ -125,11 +126,11 @@
}

&[data-active-cell] {
box-shadow: 0 0 0 2px var(--slate-300);
outline: 2px solid var(--slate-300);
border-radius: 2px;

&:focus {
box-shadow: 0 0 0 2px var(--sky-700);
outline: 2px solid var(--sky-700);
}
}

Expand All @@ -140,9 +141,8 @@

&.is-edit-mode {
padding: 0px;
box-shadow:
0 0 0 3px var(--sky-700),
0 0 8px #000000 !important;
outline: 3px solid var(--sky-700);
outline-offset: -3px;
}

&.truncate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@

[data-cell-active] {
z-index: var(--z-index__sheet__active-cell);
border-color: transparent;
min-height: 100%;
height: auto;
}
Expand Down
Loading