Skip to content

refactor(QuickLinksCard): replace hardcoded colors with theme CSS var…#72

Merged
garrity-miepub merged 1 commit intomainfrom
feature/quick-links-card-updates
Feb 4, 2026
Merged

refactor(QuickLinksCard): replace hardcoded colors with theme CSS var…#72
garrity-miepub merged 1 commit intomainfrom
feature/quick-links-card-updates

Conversation

@garrity-miepub
Copy link
Copy Markdown
Contributor

…iables

  • Replace hardcoded gray colors with semantic theme variables:

    • Icon: text-gray-500 dark:text-gray-400 → text-muted-foreground
    • Label: text-gray-900 dark:text-white → text-foreground
    • Description: text-gray-500 dark:text-gray-400 → text-muted-foreground
    • Chevron: text-gray-400 → text-muted-foreground
  • Improve badge contrast for accessibility:

    • Light mode: use --mieweb-primary-700 (darker cyan) for better contrast
    • Dark mode: use --mieweb-primary-400 (lighter cyan) for readability
    • Background remains bg-primary/10 for subtle appearance

This ensures consistent theming across all brand configurations while improving WCAG contrast compliance for badge text.

quick-links.mov

…iables

- Replace hardcoded gray colors with semantic theme variables:
  - Icon: text-gray-500 dark:text-gray-400 → text-muted-foreground
  - Label: text-gray-900 dark:text-white → text-foreground
  - Description: text-gray-500 dark:text-gray-400 → text-muted-foreground
  - Chevron: text-gray-400 → text-muted-foreground

- Improve badge contrast for accessibility:
  - Light mode: use --mieweb-primary-700 (darker cyan) for better contrast
  - Dark mode: use --mieweb-primary-400 (lighter cyan) for readability
  - Background remains bg-primary/10 for subtle appearance

This ensures consistent theming across all brand configurations
while improving WCAG contrast compliance for badge text.
Copilot AI review requested due to automatic review settings February 4, 2026 01:55
@garrity-miepub garrity-miepub marked this pull request as ready for review February 4, 2026 01:55
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the QuickLinksCard component to replace hardcoded gray and blue color values with semantic theme variables, improving consistency across brand configurations and enhancing accessibility for badge text through improved WCAG contrast compliance.

Changes:

  • Replaced hardcoded gray colors (gray-500, gray-400, gray-900) with semantic theme variables (text-muted-foreground, text-foreground)
  • Updated badge styling from hardcoded blue colors to dynamic primary theme colors with specific contrast-optimized CSS variables for light and dark modes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@garrity-miepub garrity-miepub merged commit 19f53f6 into main Feb 4, 2026
16 checks passed
@garrity-miepub garrity-miepub deleted the feature/quick-links-card-updates branch February 4, 2026 02:05
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