Files
wekan/client/components/boards/publicBoards.css
T
Lauri Ojansivu c8bcc4817d Accessibility: fix the findings of the axe-core audit in the default theme.
The default theme's blue is #2573a7, so the header's white and #f2f2f2 text
passes WCAG AA; label colours, quiet greys and grey tiles have text that
passes too. The Starred menu, the user menu and initials avatars carry their
visible text in their accessible name. The card's Pomodoro field and the
comment and description editors have a name. A card section heading is an h3
holding a real button with aria-expanded, and its menu and layout toggle sit
beside it. The sign-in form is the main landmark with a level-one title, every
page has a level-one heading, and the shortcuts list is reachable by keyboard.

After the fixes axe-core finds no violation on 22 pages. Spec 45 runs the scan
and tests/accessibilityAuditFixes.test.cjs pins each fault by its shape.

Thanks to xet7 !
2026-11-02 16:08:32 +02:00

61 lines
2.2 KiB
CSS

/* /public — the Public Boards table.
* Design: docs/Features/All-Boards/Public.md, which is docs/Features/General/Table-Page.md.
*
* ONLY the row's board colouring lives here. The table itself — its width, its
* columns, its cells, its controls row and its stacking below 800px — is
* tablePage.css, shared with every other table page, and this file must not
* restate any of it.
*/
.public-boards {
padding: 12px;
}
/* A board is recognised by its colour before its title is read, and it is the
* same board here as on All Boards, so a row carries its colour.
*
* The colour itself comes from boardColors.css, where `.public-board-row` was
* added to each board colour's existing selector list — the same declaration,
* one more selector — so these rows follow the board colours and the theme
* without a single hex value being repeated here.
*
* THE DEFAULT MATTERS MOST. A board with no colour matches none of those rules,
* so the row keeps the table's white background: with the light text below that
* is white on white, and only the row's emoji was visible. The All Boards tile
* has the same problem and solves it the same way — `.board-list-item` falls
* back to a grey (#767676) so its white text always has something to sit on. */
.public-board-row {
background-color: #767676;
background-size: cover;
background-position: center;
cursor: pointer;
}
/* Light text, like the tile's own (.board-list-item is #f6f6f6), which is
* readable because the rule above guarantees a background to sit on. */
.public-board-row td {
color: #f6f6f6;
}
.public-board-row .public-board-title a {
color: inherit;
font-weight: 700;
text-decoration: none;
}
.public-board-row .public-board-title a:hover {
text-decoration: underline;
}
/* A description is secondary to the title it explains, and it can be long: it may
* wrap, and it is dimmed a little against the board's own background — the same
* treatment .board-list-item-sub-name gets on the tile. */
.public-board-row .public-board-desc {
color: rgba(255, 255, 255, 0.85);
white-space: normal;
word-break: break-word;
}
/* The whole row opens the board, so it has to look like it does. */
.public-board-row:hover {
filter: brightness(1.08);
}