mi6 / mi6/ic-ui-kit

IcNavigationItem changes styling when missing href attribute

Open Beginner friendly
#4,393 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Fix good first issue
Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

### Summary of the bug
When an `IcNavigationItem` exists within a `tabs` slot of an `IcPageHeader`, and the `href` attribute is not specified (f.e. when using an alternative framework such as Next.js), the element appears squished in height

### 🪜 How to reproduce
Have an `IcNavigationItem` as a tab and do not specify the `href` attribute.

### 📸 Screenshots or code
`Href` specified:

Image

`Href` **not** specified:

Image

### 🖥 📱 Device
- Type: Desktop
- Device: MacBook
- OS version: macOS26
- Browser version: Firefox 148

### 🧐 Expected behaviour
The rendered tab should match the height of the example provided in the docs.

### 📝 Acceptance Criteria

*Given* that `href` is not specified
*Then* the styling should match that of when `href` is specified

### 🚨 Urgency (low, medium or high)
Low

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 issue with an IcNavigationItem in the tabs slot of an IcPageHeader, comparing cases with and without href. Trace the component styling and its tab rendering entry point, then verify that the no-href tab matches the documented height and run the relevant component tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.