|
118 | 118 | }
|
119 | 119 | }
|
120 | 120 |
|
121 |
| -.react-spectrum-Table-body--dropTarget { |
122 |
| - border-color: var(--spectrum-table-dropindicator-border-color); |
123 |
| - background-color: var(--spectrum-alias-highlight-selected); |
124 |
| - box-shadow: inset 0 0 0 1px var(--spectrum-table-cell-border-color-key-focus); |
| 121 | +.react-spectrum-Table-body { |
| 122 | + &.react-spectrum-Table-body--dropTarget { |
| 123 | + border-color: var(--spectrum-table-dropindicator-border-color); |
| 124 | + background-color: var(--spectrum-alias-highlight-selected); |
| 125 | + box-shadow: inset 0 0 0 1px var(--spectrum-table-cell-border-color-key-focus); |
125 | 126 |
|
126 |
| - /* forced-color-adjust: none, so that box-shadow style will render */ |
127 |
| - forced-color-adjust: none; |
| 127 | + /* forced-color-adjust: none, so that box-shadow style will render */ |
| 128 | + forced-color-adjust: none; |
| 129 | + } |
128 | 130 | }
|
129 | 131 |
|
130 | 132 | .react-spectrum-Table-InsertionIndicator {
|
|
170 | 172 | }
|
171 | 173 | }
|
172 | 174 |
|
173 |
| -.react-spectrum-Table-dragButtonCell { |
174 |
| - padding: var(--spectrum-global-dimension-size-40); |
| 175 | +.react-spectrum-Table-headCell { |
| 176 | + &.react-spectrum-Table-dragButtonHeadCell { |
| 177 | + padding: 0; |
| 178 | + height: inherit; |
| 179 | + } |
175 | 180 | }
|
176 | 181 |
|
177 |
| -.spectrum-Table-row-draghandle-button { |
178 |
| - border-radius: var(--spectrum-alias-border-radius-regular); |
179 |
| - padding: var(--spectrum-global-dimension-size-10); |
| 182 | +.react-spectrum-Table-cell { |
| 183 | + &.react-spectrum-Table-dragButtonCell { |
| 184 | + padding: var(--spectrum-global-dimension-size-40); |
180 | 185 |
|
181 |
| - &:focus-ring { |
182 |
| - box-shadow: inset 0 0 0 2px var(--spectrum-table-cell-border-color-key-focus); |
183 |
| - outline: none; |
| 186 | + .react-spectrum-Table-dragButton { |
| 187 | + border-radius: var(--spectrum-alias-border-radius-regular); |
| 188 | + padding: var(--spectrum-global-dimension-size-10); |
184 | 189 |
|
185 |
| - /* forced-color-adjust: none, so that box-shadow style will render */ |
186 |
| - forced-color-adjust: none; |
187 |
| - } |
188 |
| - svg { |
189 |
| - margin: auto 0; |
190 |
| - display: block; |
191 |
| - padding: var(--spectrum-global-dimension-size-40); |
192 |
| - } |
193 |
| -} |
| 190 | + &:focus-ring { |
| 191 | + box-shadow: inset 0 0 0 2px var(--spectrum-table-cell-border-color-key-focus); |
| 192 | + outline: none; |
194 | 193 |
|
195 |
| -.react-spectrum-dragButtonHeadCell { |
196 |
| - padding: 0; |
197 |
| - height: inherit; |
| 194 | + /* forced-color-adjust: none, so that box-shadow style will render */ |
| 195 | + forced-color-adjust: none; |
| 196 | + } |
| 197 | + |
| 198 | + svg { |
| 199 | + margin: auto 0; |
| 200 | + display: block; |
| 201 | + padding: var(--spectrum-global-dimension-size-40); |
| 202 | + } |
| 203 | + } |
| 204 | + } |
198 | 205 | }
|
199 | 206 |
|
200 |
| -.react-spectrum-Table-row--dropTarget { |
201 |
| - border: 1px var(--spectrum-table-dropindicator-border-color); |
202 |
| - box-shadow: inset 2px 0 0 0 var(--spectrum-table-dropindicator-border-color), |
203 |
| - inset -2px 0 0 0 var(--spectrum-table-dropindicator-border-color), |
204 |
| - inset 0 -3px 0 0 var(--spectrum-table-dropindicator-border-color), |
205 |
| - inset 0 2px 0 0 var(--spectrum-table-dropindicator-border-color); |
| 207 | +.react-spectrum-Table-row { |
| 208 | + &.react-spectrum-Table-row--dropTarget { |
| 209 | + border: 1px var(--spectrum-table-dropindicator-border-color); |
| 210 | + box-shadow: inset 2px 0 0 0 var(--spectrum-table-dropindicator-border-color), |
| 211 | + inset -2px 0 0 0 var(--spectrum-table-dropindicator-border-color), |
| 212 | + inset 0 -3px 0 0 var(--spectrum-table-dropindicator-border-color), |
| 213 | + inset 0 2px 0 0 var(--spectrum-table-dropindicator-border-color); |
206 | 214 |
|
207 |
| - /* forced-color-adjust: none, so that box-shadow style will render */ |
208 |
| - forced-color-adjust: none; |
209 |
| -} |
| 215 | + /* forced-color-adjust: none, so that box-shadow style will render */ |
| 216 | + forced-color-adjust: none; |
| 217 | + } |
210 | 218 |
|
211 |
| -.react-spectrum-Table-cellWrapper.react-spectrum-Table-cellWrapper--dropTarget { |
212 |
| - background-color: var(--spectrum-table-droptarget-background-color); |
| 219 | + .react-spectrum-Table-cellWrapper.react-spectrum-Table-cellWrapper--dropTarget { |
| 220 | + background-color: var(--spectrum-table-droptarget-background-color); |
| 221 | + } |
213 | 222 | }
|
214 | 223 |
|
215 | 224 | @media (forced-colors: active) {
|
|
0 commit comments