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

Missing style for nhsuk-list--border #938

Open
jakeb-nhs opened this issue Apr 16, 2024 · 0 comments
Open

Missing style for nhsuk-list--border #938

jakeb-nhs opened this issue Apr 16, 2024 · 0 comments

Comments

@jakeb-nhs
Copy link

Bug Report

What is the issue?

There appears to be a missing CSS selector and style for the first item in a bordered list.

See the service manual for the A-Z page: https://service-manual.nhs.uk/design-system/patterns/a-to-z-page
This makes use of a list panel for each collection of conditions - the first item in each panel has a grey border above it. This comes from the following selector and style:

.nhsuk-list--border li:first-of-type {
    border-top: 1px solid #d8dde0;
    padding: 16px 0;
}

There is no such CSS present in this library, which means that when rendering an nhsuk-list--border element, the first item does not have a top border.

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