Skip to content

Fix: Improve icon contrast and text hierarchy Contributing and About Pages #4983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

michellecaii
Copy link

@michellecaii michellecaii commented Apr 30, 2025

Because

The About page's belief section currently uses low-contrast icons and tight typography, especially in dark mode. This affects both accessibility and visual engagement.

This PR

  • Updates icon styling to use high-contrast background and foreground colors for better accessibility in both light and dark modes

  • Enlarges icons and wraps them in rounded backgrounds to make them more visually prominent

  • Improves heading size and spacing for clearer text hierarchy

Issue

Additional Information

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project Contributing Guide
  • The title of this PR follows the keyword: brief description of change format, using one of the following keywords:
    • Feature - adds new or amends existing user-facing behavior
    • Chore - changes that have no user-facing value, refactors, dependency bumps, etc
    • Fix - bug fixes
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • I have verified all tests and linters pass after making these changes.
  • If this PR addresses an open issue, it is linked in the Issue section
  • If applicable, this PR includes new or updated automated tests

@github-project-automation github-project-automation bot moved this to 📋 Backlog / Ideas in Main Site Apr 30, 2025
@michellecaii michellecaii changed the title git add . git commit -m "Improve icon contrast and text hierarchy on … Fix: Improve icon contrast and text hierarchy Contributing and About Pages Apr 30, 2025
@KevinMulhern KevinMulhern temporarily deployed to odin-review-app-pr-4983 April 30, 2025 03:07 Inactive
<div class="sm:col-span-10 text-center sm:text-left space-y-3">
<h3 class="pt-10 sm:pt-0 text-lg font-semibold">
<div class="sm:col-span-10 text-center sm:text-left">
<h3 class="text-2xl font-semibold mb-2 text-gray-800 dark:text-white">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like most of these changes, but the font size being bigger than the section title is throwing off the hierarchy:

Suggested change
<h3 class="text-2xl font-semibold mb-2 text-gray-800 dark:text-white">
<h3 class="text-lg font-semibold mb-2 text-gray-800 dark:text-white">

<div class="flex sm:col-span-2 justify-center ">
<%= image_tag @belief[:image_path], alt: '', class: 'w-20 h-20' %>
<div class="flex sm:col-span-2 justify-center">
<div class="w-20 h-20 flex items-center justify-center rounded-full bg-gray-700 dark:bg-white shadow-md">
Copy link
Member

@KevinMulhern KevinMulhern Apr 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The backgrounds being different from the surrounding background is drawing the eye a bit too much. You can test that by reading the belief content and noticing where your eyes want to go to. I think this will distract users from the main content.

What issues did you find with the contrast of these icons? They appear fine to me, and lighthouse isn't raising anything about em.

@github-project-automation github-project-automation bot moved this from 📋 Backlog / Ideas to 🏗 In progress in Main Site Apr 30, 2025
@KevinMulhern
Copy link
Member

Hey @michellecaii, just checking in, do you want to finish this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

2 participants