Skip to content

Commit 49c937b

Browse files
committed
wip
1 parent 40610fc commit 49c937b

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

packages/grid/src/styles/vaadin-grid-base-styles.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export const gridStyles = css`
177177
#scroller[empty-state] &,
178178
:host([overflow~='top']) &,
179179
:host([overflow~='bottom']) & {
180-
[part~='row']::before {
180+
[part~='row']:first-child::before {
181181
content: '';
182182
height: var(--_row-border-width);
183183
background: var(--_border-color);
@@ -207,11 +207,10 @@ export const gridStyles = css`
207207
208208
/* Grid without header */
209209
#table:not(:has(#header > tr:not([hidden]))) {
210-
/* #header:not(:empty) {
211-
margin-block-start: calc(var(--_row-border-width) * -1);
212-
padding-block-start: var(--_row-border-width);
210+
:host([overflow~='top']) & #header {
211+
min-height: var(--_row-border-width);
213212
pointer-events: none;
214-
} */
213+
}
215214
216215
/* Focus outline */
217216
[part~='first-row']::after,
@@ -569,19 +568,18 @@ export const gridStyles = css`
569568
570569
&[dragover]::after {
571570
content: '';
572-
outline: 0;
573-
border-width: var(--vaadin-focus-ring-width);
574-
border-color: var(--vaadin-focus-ring-color);
575571
}
576572
577573
&[dragover='above']::after {
578574
top: calc(var(--vaadin-focus-ring-width) / -2);
579-
border-top-style: solid;
575+
border-top: var(--vaadin-focus-ring-width) solid var(--vaadin-focus-ring-color);
576+
outline: 0;
580577
}
581578
582579
&[dragover='below']::after {
583580
bottom: calc(var(--vaadin-focus-ring-width) / -2 + var(--_row-border-width) * -1);
584-
border-bottom-style: solid;
581+
border-bottom: var(--vaadin-focus-ring-width) solid var(--vaadin-focus-ring-color);
582+
outline: 0;
585583
}
586584
}
587585

0 commit comments

Comments
 (0)