-
Notifications
You must be signed in to change notification settings - Fork 339
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
Unneeded padding on warning component? #1083
Comments
govuk-warning-text__text
element has padding left that includes an extra 15px to compensate for a negative margin left (see below, dotted outline added by me to show boundary of component). Seems like this could be removed and the padding decreased, but there must be a reason for it?
For reference, it looks like this was copied from Elements. |
@andysellick I believe this was done to allow for multiple lines: |
That's weird, I've asked Andy if he wants to do a PR for this... If he's busy I'll turn this into a good first timer issue. |
I am busy, but I'd like to contribute (if only to experience the process) so I'll try to raise a PR soon (also it's not a huge change). Thanks! |
@andysellick will leave this open for you when you get a second then. |
@NickColley @36degrees Do you think the icon should be vertically aligned to the middle of the paragraph, like in the example, or the top or the paragraph? |
@stevenaproctor the content used there is really extreme and silly, so not sure in practice if that part of the design should be changed. If you think we can improve it though, feel free to open another issue with some more real world example content, and what you think it should look like and we can consider it. |
@NickColley I just think it scans better if the icon is at the top of the paragraph. You would naturally scan left to right, not left, down, up, right...if you see what I mean. |
Originally posted by @andysellick in alphagov/govuk-design-system-backlog#71 (comment)
The text was updated successfully, but these errors were encountered: