Skip to content

fix : made ErrorBoundary fallback UI adapt to light mode - #2028

Open
tmdeveloper007 wants to merge 5 commits into
aryandas2911:mainfrom
tmdeveloper007:#2023
Open

fix : made ErrorBoundary fallback UI adapt to light mode#2028
tmdeveloper007 wants to merge 5 commits into
aryandas2911:mainfrom
tmdeveloper007:#2023

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Summary of What Has Been Done

The ErrorBoundary.jsx component used hardcoded dark-mode colors for the error fallback UI. This has been updated to use dark-mode-aware Tailwind classes so the error page is readable in both light and dark modes.

Changes Made

  1. frontend/src/components/ErrorBoundary.jsx:
    • Outer container: bg-gray-900 + text-whitebg-gray-100 dark:bg-gray-900 + text-gray-900 dark:text-white
    • Card container: bg-gray-800bg-white dark:bg-gray-800, border-gray-700border-gray-200 dark:border-gray-700
    • Title: text-gray-100text-gray-900 dark:text-gray-100
    • Description: text-gray-400text-gray-500 dark:text-slate-300
    • Error display box: bg-gray-950bg-gray-100 dark:bg-gray-950, border-gray-700/50border-gray-200 dark:border-gray-700/50, text-red-400/90text-red-500 dark:text-red-400/90
    • Return Home button: bg-gray-700bg-gray-300 dark:bg-gray-700, text-whitetext-gray-800 dark:text-gray-100, hover states updated

Impact it Made

  • Error fallback page is now readable in both light and dark modes
  • Consistent user experience regardless of theme preference
  • Matches the dark-mode-aware pattern used throughout the rest of the codebase

Closes #2023

Note: Please assign this PR to the tmdeveloper007 account.

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.

fix : make ErrorBoundary fallback UI adapt to light mode

1 participant