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

merge-requests/2348/head
Lauri Eskola 2022-05-31 17:09:57 +03:00
parent c1efe4c37f
commit ebe52e306c
No known key found for this signature in database
GPG Key ID: 382FC0F5B0DF53F8
3 changed files with 17 additions and 2 deletions

View File

@ -1704,7 +1704,7 @@
*/
tableDragHandle() {
return `<a href="#" title="${Drupal.t('Drag to re-order')}"
class="tabledrag-handle"><div class="handle">&nbsp;</div></a>`;
class="tabledrag-handle"><div class="handle"></div></a>`;
},
},
);

View File

@ -975,7 +975,7 @@
tableDragHandle() {
return `<a href="#" title="${Drupal.t('Drag to re-order')}"
class="tabledrag-handle"><div class="handle">&nbsp;</div></a>`;
class="tabledrag-handle"><div class="handle"></div></a>`;
}
});

View File

@ -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;
}