mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 09:59:41 -05:00
tests/playwright/specs/47-accessibility-everywhere.e2e.js scans every Admin Panel pane and the member, list, swimlane and card details menus with axe, checks 320 px reflow and that nothing animates when reduced motion is asked for. What it found is fixed: - names: every unnamed input and select of the Admin Panel is named by the label shown beside it; table page filters lost their label in models/lib/tablePage.js; people rows and avatar links name the person, and a person link's name starts with its visible initials (2.5.3); - contrast: the feature descriptions, source badges, instrumentation headings and the default theme's menu hover pass 4.5:1; - target size: checkbox rows, notification options and the Select all links are at least 24 x 24 px; - the member menu's dependency toggles are checkboxes in a well-formed list; - reduced motion: one rule in its own CSS layer makes every animation and transition instant, even those header.css marks !important. Spec 47 passes in Chromium, and specs 45 and 46 still pass (39). tests/accessibilitySpec47Fixes.test.cjs pins the fixes, and fails when a settings select has no name. Thanks to xet7 !
141 lines
4.5 KiB
CSS
141 lines
4.5 KiB
CSS
/* Admin Panel → Problems: the few styles that are NOT part of the shared table
|
|
page. Everything the reports have in common - title, status row, search +
|
|
pagination controls, and the table itself - now lives in tablePage.css and is
|
|
defined once. See docs/Features/General/Table-Page.md. */
|
|
|
|
/* The menu separator and the "Reports" group title are styled with the menu itself
|
|
(settingBody.css): the shared left menu renders `li.left-menu-separator` and
|
|
`li.left-menu-heading`, not the `.admin-reports-separator` this file used to
|
|
target - so the rule that lived here, twice, never applied to anything. */
|
|
|
|
/* Admin Panel → Problems → CPU usage: the live figure between the page title and
|
|
the search box. The table underneath is a history of past high-CPU periods, so
|
|
this line is the only place the page says what the CPU is doing right now. */
|
|
.admin-cpu-current {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--theme-accent, #01628c);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.admin-cpu-label {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.admin-cpu-percent {
|
|
font-size: 1.4em;
|
|
font-weight: 700;
|
|
color: var(--theme-accent, #01628c);
|
|
}
|
|
|
|
/* Sustained high CPU: warn without inventing a second colour system. */
|
|
.admin-cpu-current.admin-cpu-high {
|
|
border-color: #b04632;
|
|
}
|
|
|
|
.admin-cpu-current.admin-cpu-high .admin-cpu-percent {
|
|
color: #b04632;
|
|
}
|
|
|
|
/* Problems / Instrumentation: one bar per area (adminProblems.jade). The rows
|
|
share one grid, so names, bars and numbers line up; each row is a button that
|
|
filters the table below, reset from the global button look (forms.css pads
|
|
every button 35px a side and paints it the theme colour). */
|
|
.instrumentation-areas {
|
|
display: grid;
|
|
grid-template-columns: minmax(6em, max-content) minmax(60px, 1fr) repeat(3, max-content);
|
|
gap: 2px 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.instrumentation-area-head,
|
|
.instrumentation-area {
|
|
display: grid;
|
|
grid-column: 1 / -1;
|
|
grid-template-columns: subgrid;
|
|
align-items: center;
|
|
}
|
|
.instrumentation-area-head {
|
|
font-weight: 700;
|
|
font-size: 0.85em;
|
|
/* WCAG 1.4.3: a solid colour instead of opacity 0.7, which faded the
|
|
headings to 2.8:1 on the Admin Panel's #dedede; #4f5156 is 5.9:1 there. */
|
|
color: #4f5156;
|
|
}
|
|
.setting-content .content-body .main-body button.instrumentation-area,
|
|
button.instrumentation-area {
|
|
width: 100%;
|
|
min-height: 0;
|
|
height: auto;
|
|
margin: 0;
|
|
padding: 4px 6px;
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
font-weight: normal;
|
|
text-align: start;
|
|
cursor: pointer;
|
|
}
|
|
button.instrumentation-area:hover,
|
|
button.instrumentation-area:focus-visible {
|
|
background: rgba(0, 0, 0, 0.06);
|
|
}
|
|
button.instrumentation-area.is-active {
|
|
border-color: var(--theme-accent, #01628c);
|
|
background: rgba(0, 0, 0, 0.06);
|
|
}
|
|
.instrumentation-area-name {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.instrumentation-area-bar {
|
|
height: 14px;
|
|
border-radius: 3px;
|
|
background: rgba(0, 0, 0, 0.08);
|
|
overflow: hidden;
|
|
}
|
|
.instrumentation-area-fill {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
height: 100%;
|
|
background: var(--theme-accent-fill, var(--theme-accent, #01628c));
|
|
}
|
|
.instrumentation-area-errors {
|
|
height: 100%;
|
|
background: #b04632;
|
|
}
|
|
.instrumentation-area-num {
|
|
text-align: end;
|
|
white-space: nowrap;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.instrumentation-area-num.has-errors {
|
|
/* #b04632 was 4.1:1 on #dedede; #9a3b29 keeps the red at 5.2:1. */
|
|
color: #9a3b29;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.file-status-audit { margin-bottom: 1rem; }
|
|
.file-status-audit-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
|
|
.file-status-audit-actions button { margin: 0; min-height: 34px; }
|
|
.file-status-audit pre { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
|
|
.rule-email-recovery-identifiers {
|
|
overflow-wrap: anywhere;
|
|
max-width: 32rem;
|
|
}
|
|
|
|
/* #6942: Problems / Summary as a status dashboard - each area's most frequent
|
|
kinds under it, and the sign-in refusals by reason with how to fix them. */
|
|
.admin-problem-top { margin: 0.25rem 0 0.75rem 2.2rem; padding: 0; list-style: none; font-size: 0.92em; }
|
|
.admin-problem-top li { margin: 0.15rem 0; overflow-wrap: anywhere; }
|
|
.admin-problem-kind { font-weight: 600; }
|
|
.admin-login-refusals { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
|
|
.admin-login-refusals td { padding: 0.35rem 0.5rem; border-bottom: 1px solid rgba(128, 128, 128, 0.3); vertical-align: top; overflow-wrap: anywhere; }
|