Skip to content

refactor: update accent color hover effects to Footer#185

Merged
ViktorSvertoka merged 3 commits into
developfrom
yn/refactor/footer-theme-styles
Jan 22, 2026
Merged

refactor: update accent color hover effects to Footer#185
ViktorSvertoka merged 3 commits into
developfrom
yn/refactor/footer-theme-styles

Conversation

@YNazymko12
Copy link
Copy Markdown
Collaborator

@YNazymko12 YNazymko12 commented Jan 22, 2026

  • Update Footer links to use --accent-primary on hover
  • Update ThemeToggle icons to use --accent-primary on hover
  • Both components adapt colors to light/dark theme

Summary by CodeRabbit

  • Style
    • Unified accent color usage across footer branding, links, and interactive elements
    • Links (privacy/terms) and social icons now use consistent hover color variables for smoother transitions
    • Improved hover/focus visuals for icons and buttons, including color and border emphasis
    • Theme toggle buttons receive enhanced visual feedback and color consistency
    • Minor layout polish for more consistent spacing and motion effects

✏️ Tip: You can customize this high-level summary in your review settings.

- Update Footer links to use --accent-primary on hover
- Update ThemeToggle icons to use --accent-primary on hover
- Both components adapt colors to light/dark theme
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 22, 2026

Deploy Preview for develop-devlovers ready!

Name Link
🔨 Latest commit 2193852
🔍 Latest deploy log https://app.netlify.com/projects/develop-devlovers/deploys/69726846df00600008da02f8
😎 Deploy Preview https://deploy-preview-185--develop-devlovers.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 22, 2026

📝 Walkthrough

Walkthrough

Footer and ThemeToggle were updated to use CSS variables (--accent-primary, --accent-hover) for accent and hover colors; ThemeToggle also received minor formatting changes and a new theme-toggle-btn class. No exported APIs were changed.

Changes

Cohort / File(s) Summary
Theming updates
frontend/components/shared/Footer.tsx, frontend/components/theme/ThemeToggle.tsx
Replace color-specific classes with CSS variables (--accent-primary, --accent-hover) for brand text, links, and social icons; add hover selectors that apply these variables.
UI control & styling tweaks
frontend/components/theme/ThemeToggle.tsx
Add theme-toggle-btn class to buttons; add transition-colors to icons and inline style to apply --accent-primary on hover/focus.
Formatting / minor refactor
frontend/components/theme/ThemeToggle.tsx
Normalize quotes to single quotes, add semicolons, minor whitespace and JSX structure adjustments; no behavioral changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

UI, refactor

Suggested reviewers

  • AM1007
  • ViktorSvertoka

Poem

🐰 A nibble of CSS, a hop of delight,
Accents and hovers now shining bright,
Buttons and icons prance in a row,
Theme tokens guide where the colors go.

🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Title check ⚠️ Warning The title mentions 'Footer' but changes affect both Footer and ThemeToggle components, making it partially representative of the actual changeset. Update the title to reflect both modified components, such as: 'refactor: update accent color hover effects in Footer and ThemeToggle'
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
frontend/components/shared/Footer.tsx (1)

94-106: Mirror hover accent on keyboard focus for social icons.
Focus-visible should get the same accent color as hover for accessibility parity.

♿ Proposed tweak
                       [&:hover]:!text-[var(--accent-primary)]
                       [&:hover]:!border-[var(--accent-primary)]
+                      focus-visible:!text-[var(--accent-primary)]
+                      focus-visible:!border-[var(--accent-primary)]
🤖 Fix all issues with AI agents
In `@frontend/components/shared/Footer.tsx`:
- Around line 59-69: The legal links in Footer (the Link components rendering
privacyPolicy and termsOfService) only change color on hover, so add a matching
focus-visible state to improve keyboard accessibility; update the className on
those Link elements (and any sibling Link usages here) to include
focus-visible:[color:var(--accent-hover)] or an equivalent focus-visible style
(e.g., ring or outline with the same accent) so keyboard users see the same
visual feedback as hover.

In `@frontend/components/theme/ThemeToggle.tsx`:
- Around line 57-61: The hover rule only styles the SVG on mouse hover; add the
matching keyboard focus-visible rule so keyboard users see the same accent:
update the ThemeToggle component styles (the .theme-toggle-btn:hover
:global(svg) rule) to also include a .theme-toggle-btn:focus-visible
:global(svg) rule that sets color: var(--accent-primary) (and ensure the button
receives a visible focus ring if not already handled).

Comment thread frontend/components/shared/Footer.tsx
Comment thread frontend/components/theme/ThemeToggle.tsx
- Add focus-visible styles for keyboard navigation accessibility
@ViktorSvertoka ViktorSvertoka merged commit 96c5634 into develop Jan 22, 2026
8 checks passed
@ViktorSvertoka ViktorSvertoka deleted the yn/refactor/footer-theme-styles branch January 22, 2026 18:22
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