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

Fix alert link styling #1303

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Conversation

greg-does-weather
Copy link
Collaborator

@greg-does-weather greg-does-weather commented Jun 7, 2024

What does this PR do? 🛠️

The alert links in the hourly table were having their line heights set higher than default text, resulting in the text rendering slightly lower in the alert box in the hourly table than outside the table. This PR explicitly sets the line height on the alert link so it's consistent everywhere.

Screenshots (if appropriate): 📸

image

Copy link
Collaborator

@partly-igor partly-igor left a comment

Choose a reason for hiding this comment

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

Nice, thanks for fixing this! One small suggestion but otherwise 👍

know what we're working with. The margin nudges the text down a bit so it
vertically aligns with the icon.
#}
class="line-height-sans-1 margin-top-05"
Copy link
Collaborator

@partly-igor partly-igor Jun 10, 2024

Choose a reason for hiding this comment

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

My suggestion is to change this to line-height-sans-2 to account for longer/wrapping text. At token 1 it gets a little tight for those cases

Token 1:
Screenshot of text with line-height-sans-1

Token 2:
image

@greg-does-weather greg-does-weather merged commit f85701a into main Jun 10, 2024
12 of 13 checks passed
@greg-does-weather greg-does-weather deleted the mgwalker/1300-alert-link-style-fix branch June 10, 2024 14:34
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.

Alert link in the hourly forecast is misaligned with the icon
2 participants