Accessibility pass: ARIA roles, label associations, CSS class migrations
- Add role=dialog/aria-modal/aria-labelledby to all 12 modal overlays (JS + PHP)
- Add aria-label="Close" to all 14 modal close buttons
- Add full ARIA combobox pattern to @mention autocomplete (listbox, option, aria-selected, aria-expanded)
- Add for= attributes to admin filter form labels (AuditLog, UserActivity, ApiKeys)
- Remove dead closeOnAdvancedSearchBackdropClick() from advanced-search.js
CSS/JS style cleanup:
- Move .ascii-banner static styles from JS inline to CSS class; add .ascii-banner--glow
- Add .ascii-banner-cursor, .loading-overlay--hiding, .has-overlay, tr[data-clickable]
- Add .animate-fadein/.animate-fadeout/.comment--deleting to ticket.css
- Add .lt-toast--hiding to base.css; remove opacity/transition inline JS
- Remove redundant cursor:pointer JS (already in th{} CSS rule)
- Remove trailing space in lt-select class attributes
Bug fixes:
- base.js: boot overlay opacity inline style was overriding .fade-out class opacity via
specificity (1000 vs 20), preventing the fade-out animation — removed
- ascii-banner.js: cursor used blink-caret (border-color only) instead of blink-cursor
(opacity-based), so the █ cursor never actually blinked — fixed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -922,7 +922,8 @@ pre {
|
||||
.lt-table-wrap { overflow-x: auto; border: 2px solid var(--terminal-green); }
|
||||
|
||||
/* Sortable column header */
|
||||
.lt-table th[data-sort] { cursor: pointer; }
|
||||
.lt-table th[data-sort],
|
||||
th[data-sort-key] { cursor: pointer; }
|
||||
.lt-table th[data-sort]:hover { color: var(--terminal-green); text-shadow: var(--glow-green); }
|
||||
.lt-table th[data-sort="asc"]::after { content: ' ▲'; color: var(--terminal-green); }
|
||||
.lt-table th[data-sort="desc"]::after { content: ' ▼'; color: var(--terminal-green); }
|
||||
@@ -1177,6 +1178,7 @@ pre {
|
||||
.lt-toast-close::before,
|
||||
.lt-toast-close::after { content: ''; }
|
||||
.lt-toast-close:hover { opacity: 1; transform: none; }
|
||||
.lt-toast--hiding { opacity: 0; transition: opacity 0.3s ease; }
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
15. TAB NAVIGATION
|
||||
|
||||
@@ -284,6 +284,8 @@ tbody tr {
|
||||
transition: background-color 0.15s ease;
|
||||
}
|
||||
|
||||
tr[data-clickable="true"] { cursor: pointer; }
|
||||
|
||||
/* Button press effect */
|
||||
.btn {
|
||||
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
|
||||
@@ -1405,8 +1407,12 @@ h1 {
|
||||
z-index: var(--z-dropdown);
|
||||
font-family: var(--font-mono);
|
||||
color: var(--terminal-green);
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
.loading-overlay--hiding { opacity: 0; }
|
||||
.has-overlay { position: relative; }
|
||||
|
||||
.loading-overlay .loading-text {
|
||||
margin-top: 1rem;
|
||||
animation: blink-cursor 1s step-end infinite;
|
||||
@@ -1504,6 +1510,27 @@ h1 {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
/* Inside table cells: compact version — no ASCII art, reduced padding */
|
||||
td.empty-state {
|
||||
padding: 2rem;
|
||||
color: var(--terminal-green-dim);
|
||||
}
|
||||
|
||||
td.empty-state::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Admin views max-width container */
|
||||
.admin-container {
|
||||
max-width: 1200px;
|
||||
margin: 2rem auto;
|
||||
}
|
||||
|
||||
.admin-container-wide {
|
||||
max-width: 1400px;
|
||||
margin: 2rem auto;
|
||||
}
|
||||
|
||||
/* ===== LAYOUT COMPONENTS ===== */
|
||||
.dashboard-header {
|
||||
display: flex;
|
||||
@@ -1580,11 +1607,6 @@ button {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
@keyframes pulse-glow-box {
|
||||
0%, 100% { box-shadow: 0 0 8px currentColor, 0 0 16px currentColor; }
|
||||
50% { box-shadow: 0 0 12px currentColor, 0 0 24px currentColor, 0 0 32px currentColor; }
|
||||
}
|
||||
|
||||
/* Terminal prompt for primary action buttons */
|
||||
.btn.create-ticket::before,
|
||||
.btn.primary::before {
|
||||
@@ -2217,6 +2239,19 @@ input[type="checkbox"]:checked {
|
||||
}
|
||||
|
||||
/* ===== COLLAPSIBLE ASCII BANNER ===== */
|
||||
.ascii-banner {
|
||||
margin: 0;
|
||||
font-family: var(--font-mono);
|
||||
color: var(--terminal-green);
|
||||
line-height: 1.2;
|
||||
white-space: pre;
|
||||
overflow: visible;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ascii-banner--glow { text-shadow: var(--glow-green); }
|
||||
.ascii-banner-cursor { margin-left: 5px; animation: blink-cursor 0.75s step-end infinite; }
|
||||
|
||||
.ascii-banner-wrapper {
|
||||
max-width: 100%;
|
||||
margin: 0 1rem 1rem 1rem;
|
||||
@@ -2774,6 +2809,8 @@ input[type="checkbox"]:checked {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.pagination button {
|
||||
@@ -3905,6 +3942,279 @@ body.modal-open {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
ADMIN FORM UTILITIES
|
||||
Shared across all admin views (WorkflowDesigner, CustomFields,
|
||||
Templates, RecurringTickets, ApiKeys).
|
||||
======================================== */
|
||||
|
||||
.admin-section-title {
|
||||
color: var(--terminal-amber);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* Horizontal flex row for form fields */
|
||||
.admin-form-row {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* Growable field within .admin-form-row */
|
||||
.admin-form-field {
|
||||
flex: 1;
|
||||
min-width: 150px;
|
||||
}
|
||||
|
||||
/* Compact label above admin inputs */
|
||||
.admin-label {
|
||||
display: block;
|
||||
font-size: 0.8rem;
|
||||
color: var(--terminal-amber);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
/* Styled input / select / textarea for admin forms */
|
||||
.admin-input {
|
||||
width: 100%;
|
||||
padding: 0.5rem;
|
||||
border: 2px solid var(--terminal-green);
|
||||
border-radius: 0;
|
||||
background: var(--bg-primary);
|
||||
color: var(--terminal-green);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.admin-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--terminal-amber);
|
||||
}
|
||||
|
||||
/* Admin page title in user-header (breadcrumb-style label) */
|
||||
.admin-page-title {
|
||||
margin-left: 1rem;
|
||||
color: var(--terminal-amber);
|
||||
}
|
||||
|
||||
/* Utility: prevent text wrap (e.g., date columns in tables) */
|
||||
.nowrap { white-space: nowrap; }
|
||||
|
||||
/* Utility: monospace font */
|
||||
.mono { font-family: var(--font-mono); }
|
||||
|
||||
/* Utility: color helpers for status / accent text */
|
||||
.text-green { color: var(--terminal-green); }
|
||||
.text-amber { color: var(--terminal-amber); }
|
||||
.text-cyan { color: var(--terminal-cyan); }
|
||||
.text-danger { color: var(--priority-1); }
|
||||
.text-open { color: var(--status-open); }
|
||||
.text-closed { color: var(--status-closed); }
|
||||
.text-muted-green { color: var(--terminal-green-dim); }
|
||||
|
||||
/* Pre / code display block in admin UI */
|
||||
.admin-code-block {
|
||||
background: var(--bg-primary);
|
||||
padding: 1rem;
|
||||
border: 1px solid var(--terminal-green);
|
||||
overflow-x: auto;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
/* Summary stats grid (4 columns, used in UserActivityView) */
|
||||
.admin-stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 1rem;
|
||||
text-align: center;
|
||||
margin-top: 2rem;
|
||||
padding: 1rem;
|
||||
border: 1px solid var(--terminal-green);
|
||||
}
|
||||
|
||||
.admin-stat-value {
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.admin-stat-label {
|
||||
font-size: 0.8rem;
|
||||
color: var(--terminal-green-dim);
|
||||
}
|
||||
|
||||
/* Row with title on left and action button on right */
|
||||
.admin-header-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.admin-header-row h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Font weight utility */
|
||||
.fw-bold { font-weight: bold; }
|
||||
|
||||
/* Small button variant (shared with ticket.css) */
|
||||
.btn-small {
|
||||
padding: 0.4rem 0.75rem !important;
|
||||
font-size: 0.85rem !important;
|
||||
min-height: auto !important;
|
||||
}
|
||||
|
||||
/* Boot banner centering */
|
||||
#boot-banner {
|
||||
text-align: center;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* Empty state for dashboard table (PHP-generated) */
|
||||
.dashboard-empty-state {
|
||||
text-align: center;
|
||||
padding: 3rem;
|
||||
}
|
||||
|
||||
/* Fixed-width table columns */
|
||||
.col-checkbox { width: 40px; }
|
||||
.col-actions { width: 100px; }
|
||||
|
||||
.dashboard-empty-pre {
|
||||
color: var(--terminal-green);
|
||||
text-shadow: var(--glow-green);
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
/* Grid layouts for modal form bodies */
|
||||
.setting-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
|
||||
.setting-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
|
||||
|
||||
/* Workflow status diagram container */
|
||||
.workflow-diagram {
|
||||
margin-bottom: 2rem;
|
||||
padding: 1rem;
|
||||
border: 1px solid var(--terminal-green);
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.workflow-diagram-nodes {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 2rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.workflow-diagram-node {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.workflow-diagram-node-label {
|
||||
font-size: 0.8rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
/* Inline paragraph spacing utility */
|
||||
.mb-1 { margin-bottom: 1rem; }
|
||||
|
||||
/* Smaller modal size variants (complement lt-modal-lg from base.css) */
|
||||
.lt-modal-sm { width: 460px; }
|
||||
|
||||
/* Half-rem margin-bottom utility */
|
||||
.mb-half { margin-bottom: 0.5rem; }
|
||||
|
||||
/* Modal form label (block display with bottom spacing) */
|
||||
.lt-modal-body label {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
color: var(--terminal-green);
|
||||
}
|
||||
|
||||
/* Modal form select/input top spacing */
|
||||
.lt-modal-body .lt-select,
|
||||
.lt-modal-body .lt-input {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
/* Extra-small modal size (400px) */
|
||||
.lt-modal-xs { width: 400px; }
|
||||
|
||||
/* Confirmation modal body message */
|
||||
.modal-message {
|
||||
color: var(--terminal-green);
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
/* Danger modal header variant */
|
||||
.lt-modal-header--danger {
|
||||
color: var(--status-closed) !important;
|
||||
}
|
||||
|
||||
/* Danger action button */
|
||||
.lt-btn-danger {
|
||||
background: var(--status-closed);
|
||||
border-color: var(--status-closed);
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
.lt-btn-danger:hover {
|
||||
background: var(--priority-1);
|
||||
border-color: var(--priority-1);
|
||||
}
|
||||
|
||||
/* Modal body text sizing */
|
||||
.modal-warning-text {
|
||||
color: var(--terminal-amber);
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* Keyboard shortcuts modal */
|
||||
.kb-section-heading {
|
||||
color: var(--terminal-amber);
|
||||
margin: 0 0 0.5rem 0;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.kb-shortcuts-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.kb-shortcuts-table.no-margin {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.kb-shortcuts-table td {
|
||||
padding: 0.4rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.kb-shortcuts-table tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* Button/action group aligned to bottom (used in filter forms) */
|
||||
.admin-form-actions {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* Truncated table cell for long content */
|
||||
.td-truncate {
|
||||
max-width: 300px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Small text utility */
|
||||
.text-sm { font-size: 0.85rem; }
|
||||
|
||||
/* ========================================
|
||||
MARKDOWN FORMATTING STYLES
|
||||
======================================== */
|
||||
|
||||
@@ -466,6 +466,50 @@ textarea[data-field="description"]:not(:disabled)::after {
|
||||
}
|
||||
|
||||
/* Form Elements */
|
||||
/* Helper text below form fields */
|
||||
.form-hint {
|
||||
color: var(--terminal-green);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.85rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.form-hint-warning {
|
||||
color: var(--terminal-amber);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.85rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
/* Visibility group checkbox row */
|
||||
.visibility-groups-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.group-checkbox-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Duplicate warning box and visibility groups (JS-toggled, need margin when visible) */
|
||||
#duplicateWarning {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
#visibilityGroupsContainer {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
/* Duplicate found heading */
|
||||
.duplicate-heading {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.detail-group {
|
||||
margin-bottom: 30px;
|
||||
padding: 15px;
|
||||
@@ -944,6 +988,10 @@ textarea.editable {
|
||||
}
|
||||
}
|
||||
|
||||
.animate-fadein { animation: fadeIn 0.3s ease; }
|
||||
.animate-fadeout { animation: fadeIn 0.2s ease reverse; }
|
||||
.comment--deleting { opacity: 0; transform: translateX(-20px); transition: opacity 0.3s, transform 0.3s; }
|
||||
|
||||
.reply-form-container .reply-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
Reference in New Issue
Block a user