Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chevron icon is misaligned with the heading when description is not present #1114

Open
chrimesdev opened this issue Feb 6, 2025 · 0 comments

Comments

@chrimesdev
Copy link
Member

chrimesdev commented Feb 6, 2025

Bug Report

What is the issue?

When using the Primary card (with chevron) component and you do not have a description text in the card the chevron icon is misaligned with the title of the card.

Image

You can try to apply space modifiers such as nhsuk-u-margin-bottom-0 to heading however it still remains slightly misaligned.

Image

This may be due to the height and width set on the chevron SVG and the top: 50%; and margin-top: -8px; set in CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant