added support for legacy tickets, fixed switching of modes and also style updates

This commit is contained in:
Mark Gregory
2026-09-28 15:37:13 +01:00
parent cb98e67e04
commit 912c120299
2 changed files with 169 additions and 20 deletions
@@ -1439,3 +1439,113 @@ html:not(.dark) .helpdesk-ticket-form select:-webkit-autofill:focus {
html:not(.dark) .hd-helpdesk-surface {
color: #1f2937;
}
/* ==========================================================================\n Appearance switch integration\n The module stylesheet is loaded after the backend theme, so light-mode\n overrides must live here rather than only in the shared backend stylesheet.\n ========================================================================== */
:root:not(.dark) .hd-helpdesk-surface {
color: #18181b;
}
:root:not(.dark) .hd-helpdesk-surface .bg-zinc-950,
:root:not(.dark) .hd-helpdesk-surface .bg-zinc-900,
:root:not(.dark) .hd-helpdesk-surface .bg-neutral-950,
:root:not(.dark) .hd-helpdesk-surface .bg-neutral-900,
:root:not(.dark) .hd-helpdesk-surface .bg-slate-950,
:root:not(.dark) .hd-helpdesk-surface .bg-slate-900,
:root:not(.dark) .hd-helpdesk-surface .bg-gray-950,
:root:not(.dark) .hd-helpdesk-surface .bg-gray-900,
:root:not(.dark) .hd-helpdesk-surface [class*="bg-zinc-950/"],
:root:not(.dark) .hd-helpdesk-surface [class*="bg-zinc-900/"],
:root:not(.dark) .hd-helpdesk-surface [class*="bg-slate-950/"],
:root:not(.dark) .hd-helpdesk-surface [class*="bg-slate-900/"] {
background: #ffffff !important;
background-color: #ffffff !important;
}
:root:not(.dark) .hd-helpdesk-surface .bg-zinc-800,
:root:not(.dark) .hd-helpdesk-surface .bg-neutral-800,
:root:not(.dark) .hd-helpdesk-surface .bg-slate-800,
:root:not(.dark) .hd-helpdesk-surface .bg-gray-800 {
background: #f4f4f5 !important;
background-color: #f4f4f5 !important;
}
:root:not(.dark) .hd-helpdesk-surface .border-zinc-800,
:root:not(.dark) .hd-helpdesk-surface .border-zinc-700,
:root:not(.dark) .hd-helpdesk-surface .border-neutral-800,
:root:not(.dark) .hd-helpdesk-surface .border-slate-800,
:root:not(.dark) .hd-helpdesk-surface .border-gray-800,
:root:not(.dark) .hd-helpdesk-surface [class*="border-zinc-700/"],
:root:not(.dark) .hd-helpdesk-surface [class*="border-zinc-800/"] {
border-color: #e4e4e7 !important;
}
:root:not(.dark) .hd-helpdesk-surface .text-white:not(.hd-btn):not(button),
:root:not(.dark) .hd-helpdesk-surface .text-zinc-100,
:root:not(.dark) .hd-helpdesk-surface .text-zinc-200,
:root:not(.dark) .hd-helpdesk-surface .text-slate-100,
:root:not(.dark) .hd-helpdesk-surface .text-slate-200 {
color: #18181b !important;
}
:root:not(.dark) .hd-helpdesk-surface .text-zinc-300,
:root:not(.dark) .hd-helpdesk-surface .text-zinc-400,
:root:not(.dark) .hd-helpdesk-surface .text-zinc-500,
:root:not(.dark) .hd-helpdesk-surface .text-slate-300,
:root:not(.dark) .hd-helpdesk-surface .text-slate-400,
:root:not(.dark) .hd-helpdesk-surface .text-slate-500 {
color: #71717a !important;
}
/* Hero/header gradients are decorative, but they must also follow appearance. */
:root:not(.dark) .hd-helpdesk-surface .bg-gradient-to-br:not(.hd-btn) {
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 52%, #eef2ff 100%) !important;
color: #18181b !important;
border-color: #e4e4e7 !important;
}
:root:not(.dark) .hd-helpdesk-surface .bg-gradient-to-br:not(.hd-btn) .text-white {
color: #18181b !important;
}
:root:not(.dark) .hd-helpdesk-surface .bg-gradient-to-br:not(.hd-btn) .text-blue-200,
:root:not(.dark) .hd-helpdesk-surface .bg-gradient-to-br:not(.hd-btn) .text-blue-100 {
color: #475569 !important;
}
/* Native/select2 controls had unconditional dark colours. */
:root:not(.dark) .hd-select,
:root:not(.dark) .hd-ticket-board-select,
:root:not(.dark) .helpdesk-ticket-form input,
:root:not(.dark) .helpdesk-ticket-form textarea,
:root:not(.dark) .helpdesk-ticket-form select,
:root:not(.dark) .helpdesk-ticket-form .select2-container--default .select2-selection--single,
:root:not(.dark) .helpdesk-ticket-form .select2-container--default .select2-selection--multiple,
:root:not(.dark) .helpdesk-ticket-form .select2-container--default .select2-selection__rendered {
background: #ffffff !important;
background-color: #ffffff !important;
color: #18181b !important;
border-color: #d4d4d8 !important;
caret-color: #18181b !important;
box-shadow: 0 1px 2px rgba(15, 23, 42, .06) !important;
}
:root:not(.dark) .hd-select option,
:root:not(.dark) .hd-ticket-board-select option,
:root:not(.dark) .select2-dropdown,
:root:not(.dark) .select2-search__field,
:root:not(.dark) .select2-container--default .select2-results__option {
background: #ffffff !important;
color: #18181b !important;
}
/* Kanban/list/settings surfaces that use bespoke hard-coded dark rules. */
:root:not(.dark) .helpdesk-kanban-column,
:root:not(.dark) .hd-core-settings section,
:root:not(.dark) .hd-core-settings table,
:root:not(.dark) .hd-helpdesk-surface table {
background-color: #ffffff !important;
color: #18181b !important;
}
:root:not(.dark) .helpdesk-kanban-column > div:first-child,
:root:not(.dark) .hd-helpdesk-surface thead,
:root:not(.dark) .hd-core-settings thead {
background-color: #f4f4f5 !important;
color: #3f3f46 !important;
}