mi6 / mi6/ic-ui-kit

Setting contentAligned on Hero to center does not center secondary content

Open
#2,040 2 comments 0 reactions 0 assignees View on GitHub
hero component ic-hero
Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

## Summary of the bug
Setting contentAligned on Hero to center does not center secondary content on smaller screen sizes

## 🪜 How to reproduce
Tell us the steps to reproduce the problem:
1. Go the Hero storybook
2. Set contentAligned to center
3. Adjust your window width to a smaller screen size
4. See how Secondary header and secondary description is not in the center

## 📸 Screenshots or code
![image](https://github.com/mi6/ic-ui-kit/assets/90764648/635af47f-8de6-489f-ae6c-24c13ec85269)

Contributor guide

Open the contributing guide

Research direction

Start with the Hero Storybook story and reproduce the issue by setting contentAligned to center and narrowing the window. Trace the Hero implementation and its responsive styling for the secondary header and description. Done means both secondary elements remain centered at smaller screen sizes and the Storybook reproduction no longer shows the bug.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.