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

Using standard emphasized link font weight #2790

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Using standard emphasized link font weight #2790

merged 2 commits into from
Jan 10, 2025

Conversation

hudajkhan
Copy link
Contributor

@hudajkhan hudajkhan commented Jan 8, 2025

Closes #2742 .
Note: The font weights for the other examples (regular links and menu links) seem to be consistent with what has been suggested so this PR focuses on emphasized links.

To conform with the font-weight requirements for emphasized links, this pull request does the following:

  • For the "Social justice" tag, the inactive font weight is set to 500 (changing this from the previous value of 700). The active font weight should be 600.
  • For the "Spotlight at Stanford" link, the font weight is set to 500. There doesn't appear to be an "active" version required for this, but can easily be added if I am wrong.

Before:

Social Justice tag - inactive
Screenshot 2025-01-08 at 3 22 45 PM

Social Justice tag - active
Screenshot 2025-01-08 at 3 23 14 PM

Spotlight at Stanford link
Screenshot 2025-01-08 at 3 23 31 PM

Screenshot 2025-01-08 at 3 23 37 PM

After:

Social Justice tag - inactive
Screenshot 2025-01-08 at 3 26 57 PM

Social Justice tag - active
Screenshot 2025-01-08 at 3 27 12 PM

Spotlight at Stanford link
Screenshot 2025-01-08 at 3 27 19 PM

Screenshot 2025-01-08 at 3 27 23 PM

@hudajkhan hudajkhan changed the title standardizing emphasized links for social justice tag and spotlight a… Using standard emphasized link font weight Jan 8, 2025

// Allows for emphasized link weight for 'Spotlight at Stanford'
.nav-link.emphasized {
font-weight: 500;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just use the pre-existing fw-medium Bootstrap class for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Sounds good.

app/views/shared/_user_util_links.html.erb Outdated Show resolved Hide resolved
@jcoyne jcoyne merged commit 6db2259 into main Jan 10, 2025
2 checks passed
@jcoyne jcoyne deleted the fontweight branch January 10, 2025 04:14
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.

Standardize font-weight pattern
3 participants