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

Use header as H1 if title is missing in HubHero #12254

Merged
merged 2 commits into from
Feb 21, 2024
Merged

Use header as H1 if title is missing in HubHero #12254

merged 2 commits into from
Feb 21, 2024

Conversation

minimalsm
Copy link
Contributor

Description

If a title is not passed in props, use the header as H1 instead.

image

cc: @nloureiro this probably has design system considerations

Other

Small fix to error syntax

Related Issue

Fixes #12253
Related #12252

Copy link

netlify bot commented Feb 21, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 0d8bb14
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/65d6006a4c44690008b9844e
😎 Deploy Preview https://deploy-preview-12254--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nloureiro
Copy link
Contributor

@minimalsm I am not sure if it affects the design system directly; it's more of an SEO issue, no?

For the DS might be an exception, not a big deal

@minimalsm
Copy link
Contributor Author

@nloureiro do we document what is H1 in design specs?

@nloureiro
Copy link
Contributor

@nloureiro do we document what is H1 in design specs?

Only the default style of an H1, targeting more MD pages.

This case was a "false" H1 for SEO purposes. Not sure if the DS would have this level of detail.

@minimalsm minimalsm mentioned this pull request Feb 21, 2024
2 tasks
@corwintines corwintines self-assigned this Feb 21, 2024
Copy link
Member

@corwintines corwintines left a comment

Choose a reason for hiding this comment

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

LGTM

@corwintines corwintines merged commit d9fb2bf into dev Feb 21, 2024
10 checks passed
@corwintines corwintines deleted the fixHubHeroH1 branch February 21, 2024 22:58
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.

HubHero allows for empty H1
3 participants