nuxt / nuxt/icon

NuxtUI icons forced to width and height 1em!

Open
#416 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.2k
Forks
96
Avg merge
8h 12m
Merged PRs (30d)
2

Description

Image Image

Normal button:

<UButton
            color="info"
            variant="soft"
            size="xl"
            icon="i-heroicons-question-mark-circle"
            class="rounded-full"
            aria-label="Show keyboard shortcuts"
          />

Im using Nuxt4 and NuxtUI 3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported sizing with Nuxt 4, Nuxt UI 3, and the UButton icon prop shown in the issue. Trace the icon component entry point and compare the rendered dimensions with the screenshots; done means the icon is no longer forced to width and height 1em while the button example continues to render correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.