Fix table sorting icon contrast to meet WCAG AA accessibility standards #1448
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.