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.

Assessment

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

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.

Description

Bug Fix good first issue
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

Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 2h
Merged PRs (30d)
13

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.

More from mi6/ic-ui-kit

All issues in mi6/ic-ui-kit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.