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

Patch headline eyebrow link #128

Merged
merged 4 commits into from
Jan 7, 2025
Merged

Conversation

rachelmarconi
Copy link
Contributor

What's in this pull request

  • Component update

Description

In non-apps project Stories or Data tools (by the Urban dot org categorization), Headline eyebrows link out to either https://www.urban.org/data-tools or https://www.urban.org/stories.

Our headline component now detects when the eyebrow is Data tool or Story (checking against lowercased version of the string) and adds the proper link out, following the style in Drupal (underline the link on hover). If the eyebrow is not Data tool or Story, it stays a p tag.

Before submitting, please check that you've

  • Formatted your code correctly (i.e., prettier cleaned it up)
  • Documented any new components or features
  • Added any changes in this PR to the CHANGELOG.md Next section
  • Does the component directory include description and usage information in .stories.svelte?

Copy link
Contributor

@mitchthorson mitchthorson left a comment

Choose a reason for hiding this comment

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

This looks great!

@rachelmarconi rachelmarconi merged commit 8364b98 into main Jan 7, 2025
1 check passed
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.

2 participants