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

Add panel component #1012

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Add panel component #1012

wants to merge 9 commits into from

Conversation

davidhunter08
Copy link
Contributor

@davidhunter08 davidhunter08 commented Sep 10, 2024

Description

Add panel component for use on confirmation pages.

Large screens

Screenshot 2024-09-12 at 14 19 35

Small screens

Screenshot 2024-09-12 at 14 19 51

Checklist

@edwardhorsford
Copy link
Contributor

@davidhunter08 can you add some screenshots?

Comment on lines +27 to +28
background: $color_nhsuk-green;
border: $nhsuk-border-width-panel solid transparent;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I presume this is similar to the GOV.UK panel - we should double check this looks ok with changed / forced colours.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's taken from GOV. I'll check what it looks like with changed / forced colours.

border: $nhsuk-border-width-panel solid transparent;
box-sizing: border-box;
color: $color_nhsuk-white;
padding: nhsuk-spacing(6) - $nhsuk-border-width-panel;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add comment for why this is different?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which bit @edwardhorsford ?

padding: nhsuk-spacing(6) - $nhsuk-border-width-panel;

@include mq($until: tablet) {
padding: nhsuk-spacing(4) - $nhsuk-border-width-panel;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add comment for why this is differenet?

@davidhunter08
Copy link
Contributor Author

Font sizes

After reviewing the panel font sizes, taking into consideration the proposed type scale updates, I've change the panel body font size to 24px(20px on mobile).

panel-font-sizes

@davidhunter08 davidhunter08 marked this pull request as ready for review November 22, 2024 14:57
@anandamaryon1
Copy link
Collaborator

@davidhunter08 Thoughts on padding? I can see this totals 40px with the border and padding. Our cards tend to have 32px padding. I wonder whether this should have the same padding amount as cards? Possibly not an issue since they shouldn't ever appear on the same page. But worth considering?

Side note, any idea why the panel includes a 4px border? I assume for print/high-contrast styles?

@davidhunter08
Copy link
Contributor Author

@davidhunter08 Thoughts on padding? I can see this totals 40px with the border and padding. Our cards tend to have 32px padding. I wonder whether this should have the same padding amount as cards? Possibly not an issue since they shouldn't ever appear on the same page. But worth considering?

It makes sense and looks ok having the padding 32px.

32px 40px
32px 40px

Side note, any idea why the panel includes a 4px border? I assume for print/high-contrast styles?

I presumed this was for changed/forced colours, same as the buttons, but I haven't tested it. We can test in the accessibility lab.

@anandamaryon1
Copy link
Collaborator

Tested on Windows with high contrast, 4px transparent border shows white 👍
image

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

Successfully merging this pull request may close these issues.

4 participants