Skip to content

Conversation

@rileychh
Copy link
Member

@rileychh rileychh commented Jan 5, 2026

Fixes icon alignment issues where icons were not properly aligned with adjacent text.

Changes

  • Add icon class to Nuxt Icon module configuration
  • Define icon shortcut in UnoCSS with -align-0.125em vertical offset
  • This applies consistent vertical alignment to all icons (both local and remote collections)

Technical Details

The negative vertical offset (-align-0.125em) ensures icons align properly with the baseline of surrounding text, improving visual consistency across the UI.

Copy link

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 attempts to fix icon alignment issues by adding a CSS class to icons with a vertical offset. However, there is a critical issue with the UnoCSS utility syntax that will prevent the fix from working correctly.

Key Changes:

  • Added icon shortcut in UnoCSS configuration with vertical alignment offset
  • Configured Nuxt Icon module to apply the icon class to all icon components

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
uno.config.ts Added shortcuts configuration with icon class definition using vertical offset
nuxt.config.ts Added class property to icon module configuration to apply the icon class to all icons

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

@rileychh rileychh merged commit 2ee4d75 into main Jan 7, 2026
7 checks passed
@rileychh rileychh deleted the align-icons branch January 7, 2026 08:34
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.

3 participants