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

Change position and spacing relationship of warning text icon #1578

Merged
merged 3 commits into from
Sep 23, 2019

Conversation

dashouse
Copy link

@dashouse dashouse commented Sep 19, 2019

This PR addresses - #1352

The primary purpose of the this PR was to align the icon with the top line, so that when the content wraps the icon doesn't vertically align with the entire block and potentially end up out of sight when the user starts reading the warning text.

To do this I had to also reduce the size of the icon slightly, and reduce the gap between the icon and the text accordingly.

It may seem a random size (29px) but this is helped it align with the first line, 30px created an unequal distribution of space.

Before: Single line

Screen Shot 2019-09-19 at 09 32 44

Before: Wrapping

Screen Shot 2019-09-19 at 09 33 10

After: Single line

Screen Shot 2019-09-19 at 09 28 02

After: Wrapping

Screen Shot 2019-09-19 at 09 28 53

I also removed some of the (I think) New Transport adjustments.

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1578 September 19, 2019 08:40 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1578 September 19, 2019 09:29 Inactive
@36degrees
Copy link
Contributor

@36degrees
Copy link
Contributor

This makes sense to me – just needs a changelog entry.

@NickColley NickColley added this to the Next milestone Sep 19, 2019
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1578 September 20, 2019 07:18 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants