Fix table sorting icon contrast to meet WCAG AA accessibility standards#1448
Fix table sorting icon contrast to meet WCAG AA accessibility standards#1448Copilot wants to merge 2 commits into
Conversation
|
Hi @Copilot |
|
Use Run test server using develop.opencast.org as backend: Specify a different backend like stable.opencast.org: It may take a few seconds for the interface to spin up. |
Co-authored-by: lkiesow <1008395+lkiesow@users.noreply.github.com>
|
FYI this was created as part of a demonstration in the OC technical meeting. |
|
Also #1431 is addressing the same issue. |
|
This pull request has conflicts ☹ |
|
Since it appears that nobody wants to use this as a base for their work, I'll go ahead and close this. It's easy enough to reopen or regenerate. |
Problem
The sorting icons in table headers had insufficient contrast against the light header background, failing WCAG AA accessibility standards:
#8c939b(light gray) with 2.79:1 contrast ratio ❌#378dd4(light blue) with 3.19:1 contrast ratio ❌WCAG AA standards require a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text/graphics. While these are small icons, the contrast was too low even for the 3:1 threshold, making them difficult to see for users with visual impairments or in poor lighting conditions.
Solution
Updated the sorting icon colors in
src/components/shared/Table.tsxto use darker, more accessible colors:#5a5e63(dark gray) → 5.87:1 contrast ratio ✅#1d5888(dark blue) → 6.73:1 contrast ratio ✅Both colors now exceed WCAG AA standards with over 110% improvement in contrast ratios.
The active color
#1d5888was specifically chosen because it's already used for action links in the table styles (src/styles/components/_tables.scss), maintaining visual consistency throughout the application.Changes
src/components/shared/Table.tsx(2 lines)LuChevronUpandLuChevronDownicon colors for active and inactive statesScreenshots
Default state with improved inactive icon contrast
Active sorting state with improved contrast
Benefits
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
develop.opencast.orgnode /home/REDACTED/work/opencast-admin-interface/opencast-admin-interface/node_modules/.bin/vite(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.