|
33 | 33 |
|
34 | 34 | &:hover, |
35 | 35 | &:focus { |
| 36 | + --euiDataGridCellOutlineColor: #{$euiColorPrimary}; |
36 | 37 | @include euiDataGridCellFocus; |
37 | 38 | } |
38 | 39 |
|
39 | 40 | // On hover |
40 | 41 | &:hover:not(:focus, :focus-within, .euiDataGridRowCell--open) { |
| 42 | + // Color the actions and focus ring grayscale on hover |
| 43 | + // (Actions look odd without the ring on grids without cell borders) |
| 44 | + --euiDataGridCellOutlineColor: #{$euiColorDarkShade}; |
| 45 | + |
41 | 46 | .euiDataGridRowCell__actions { |
42 | 47 | // Delay the actions showing on hover |
43 | 48 | // (Note: the focus ring show instantly on hover & the actions show instantly on focus) |
44 | 49 | animation-delay: $euiAnimSpeedSlow; |
45 | | - |
46 | | - // Color the actions and focus ring grayscale on hover |
47 | | - // (Actions look odd without the ring on grids without cell borders) |
48 | | - background-color: $euiColorDarkShade; |
49 | | - border-color: $euiColorDarkShade; |
50 | | - color: $euiColorEmptyShade; |
51 | | - } |
52 | | - |
53 | | - &::after { |
54 | | - border-color: $euiColorDarkShade; |
55 | 50 | } |
56 | 51 | } |
57 | 52 |
|
|
143 | 138 | display: flex; |
144 | 139 | gap: $euiSizeXS / 2; |
145 | 140 | padding-inline: $euiSizeXS / 2; |
146 | | - background-color: $euiColorPrimary; |
| 141 | + background-color: var(--euiDataGridCellOutlineColor); |
147 | 142 | color: $euiColorEmptyShade; |
148 | | - border: $euiBorderWidthThin solid $euiColorPrimary; |
| 143 | + border: $euiBorderWidthThin solid var(--euiDataGridCellOutlineColor); |
149 | 144 | border-top-left-radius: $euiBorderRadius / 2; |
150 | 145 | border-top-right-radius: $euiBorderRadius / 2; |
151 | 146 | transform: scaleY(0); |
|
164 | 159 | top: 100%; |
165 | 160 | height: $euiBorderWidthThick; |
166 | 161 | width: $euiBorderWidthThick; |
167 | | - background-color: red; // TODO - DRY out background-color |
| 162 | + background-color: var(--euiDataGridCellOutlineColor); |
168 | 163 |
|
169 | 164 | .euiDataGridRowCell--alignLeft & { |
170 | 165 | left: -$euiBorderWidthThin; |
|
0 commit comments