Fix : highlight text visibility in dark mode and remove unwanted spacing #572
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.
Description
This PR addresses two critical UI/UX issues to improve the user experience on the Terms of Service page, particularly for users with dark mode enabled.
This pr fixes #557
The issues fixed are:
Poor Contrast in Dark Mode: The highlighted text ("recodehive" and "Sanjay Viswanathan") was difficult to read in dark mode due to poor color contrast. This fix adjusts the background and text color specifically for dark mode to ensure readability.
Unintended Spacing: Unnecessary whitespace and line breaks in the JSX code were creating unwanted gaps between words, disrupting the text's flow and appearance.
By resolving these issues, the Terms of Service page is now more accessible and visually consistent across both light and dark themes.
Type of Change
[ ] New feature
[x] Bug fix
[x] UI/UX improvement
[ ] Performance optimization
[ ] Documentation update
Changes Made
Color Visibility in Dark Mode: Modified the and tags to include Tailwind's dark: utility classes.
bg-yellow-100 was changed to bg-yellow-100 dark:bg-yellow-600 to provide a darker, more contrasting background in dark mode.
dark:text-gray-900 was added to ensure the text remains dark and highly legible on the darker background.
Spacing Fix: The line breaks and extra spaces surrounding the and tags were removed from the JSX. This change prevents React from rendering unintended spaces and restores the proper word spacing.
Checklist
[x] My code follows the style guidelines of this project.
[x] I have tested my changes across major browsers and devices.
[x] My changes do not generate any new console warnings or errors.
[x] I ran npm run build and have attached relevant screenshots.
[x] This PR is for an issue that was assigned to me.
Screenshot -