Skip to content

Conversation

FoksVHox
Copy link
Contributor

@FoksVHox FoksVHox commented Oct 9, 2025

This pull request makes a minor visual improvement to the error page template. The color of the error code and message text has been updated for better readability and dark mode support.

  • Updated text color classes in src/Illuminate/Foundation/Exceptions/views/minimal.blade.php to use text-gray-600 for light mode and dark:text-gray-300 for dark mode, improving accessibility and visual consistency across themes.
  • Ensured contrast ratios meet WCAG AAA accessibility standards, making the error page more readable for all users, including those with visual impairments.

While developing my own application, and writing tests to ensure it would be accessible for all users, I found that the standard HTTP error pages were having issues with the contrast of the text color and background color.

Prior to these changes, when comparing the contrast ratios, it would be:
Lightmode ratios with issues
Darkmode ratios with issues

After these changes, when comparing the contrast ratios, it will be:
Lightmode ratios

Darkmode ratios

@taylorotwell taylorotwell merged commit 1c1fdeb into laravel:12.x Oct 9, 2025
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants