ic-ui-kit
ic-ui-kit copied to clipboard
Setting contentAligned on Hero to center does not center secondary content
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:
- Go the Hero storybook
- Set contentAligned to center
- Adjust your window width to a smaller screen size
- See how Secondary header and secondary description is not in the center
📸 Screenshots or code
Figma needs an update to allow that
This is because the Heading (Hero heading, description and interaction slot) comes from the Atoms/TitleSection (which has the alignment property) while the Secondary Section comes from the Atoms/SecondarySlot (which doesn't).
Currently, the SecondarySlot may contain either;
- card (right aligned)
- secondary heading (centre aligned)
- image (centre aligned)
This should be a simple issue to address in Figma.