Issue #3227431 by mherchel, kostyashupenko, andy-blum, Kristen Pol, andrewmacpherson, cindytwilliams, alexpott, mgifford, dww, shaal, rkoller: Tabledrag icon doesn't adapt to forced-colors mode
parent
c1efe4c37f
commit
ebe52e306c
|
@ -1704,7 +1704,7 @@
|
|||
*/
|
||||
tableDragHandle() {
|
||||
return `<a href="#" title="${Drupal.t('Drag to re-order')}"
|
||||
class="tabledrag-handle"><div class="handle"> </div></a>`;
|
||||
class="tabledrag-handle"><div class="handle"></div></a>`;
|
||||
},
|
||||
},
|
||||
);
|
||||
|
|
|
@ -975,7 +975,7 @@
|
|||
|
||||
tableDragHandle() {
|
||||
return `<a href="#" title="${Drupal.t('Drag to re-order')}"
|
||||
class="tabledrag-handle"><div class="handle"> </div></a>`;
|
||||
class="tabledrag-handle"><div class="handle"></div></a>`;
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -47,6 +47,21 @@ a.tabledrag-handle:hover .handle,
|
|||
a.tabledrag-handle:focus .handle {
|
||||
background-image: url(../../../../misc/icons/000000/move.svg);
|
||||
}
|
||||
|
||||
@media (forced-colors: active) {
|
||||
a.tabledrag-handle .handle,
|
||||
a.tabledrag-handle:hover .handle,
|
||||
a.tabledrag-handle:focus .handle {
|
||||
background: linktext;
|
||||
-webkit-mask: url(../../../../misc/icons/787878/move.svg) no-repeat 6px 7px;
|
||||
mask: url(../../../../misc/icons/787878/move.svg) no-repeat 6px 7px;
|
||||
}
|
||||
|
||||
a.tabledrag-handle:focus {
|
||||
outline: solid 1px transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.touchevents .draggable td {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue