Files
wekan/client/components/settings/sharedLabelsSettings.jade
T
Lauri Ojansivu 6a7af5391a Accessibility: every Admin Panel pane and the most used popups pass the WCAG 2.2 AA rules, at 320 px and with reduced motion.
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 !
2026-11-24 19:14:11 +02:00

27 lines
1.4 KiB
Plaintext

//- Admin Panel / Settings / Labels: shared labels (#2761, #4698). The
//- instance-wide catalog and those of organizations and teams; a board uses
//- them beside its own labels (docs/Features/Admin-Panel/Settings/Shared-Labels.md).
template(name="sharedLabelsSettings")
.shared-labels-settings
p.roles-description {{_ 'shared-labels-desc'}}
ul.setting-detail.shared-labels-list
each rows
li.shared-label-row(data-id="{{id}}")
span.card-label(class="{{labelColorClass color}}" style="{{labelColorStyle color}}") {{name}}
input.js-shared-label-name(type="text" value=name maxlength="100" placeholder="{{_ 'name'}}" aria-label="{{_ 'name'}}")
//- The board labels' own colour picker (cards/labels.jade).
.shared-label-color
+labelColorPicker(color=color onChange=colorSink)
select.js-shared-label-scope(aria-label="{{_ 'shared-labels'}}")
each scopeOptions
option(value=value selected=selected) {{_ labelKey}}
if needsScopeId
select.js-shared-label-scope-id(aria-label="{{_ scopeLabelKey}}")
each scopeIdOptions
option(value=value selected=selected) {{label}}
if isNew
button.js-shared-label-save.primary {{_ 'add-shared-label'}}
else
button.js-shared-label-save.primary {{_ 'save'}}
button.js-shared-label-delete {{_ 'delete'}}