-
Notifications
You must be signed in to change notification settings - Fork 63
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
feat: add h1 in EmptySearch component #2659
base: main
Are you sure you want to change the base?
feat: add h1 in EmptySearch component #2659
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
4842990
to
0f54346
Compare
@@ -13,6 +14,25 @@ | |||
} | |||
} | |||
|
|||
[data-fs-search-loading] { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
h1 { | ||
font-size: var(--fs-text-size-4); | ||
|
||
@include media(">=tablet") { font-size: var(--fs-text-size-5); padding-top: var(--fs-spacing-4); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just trying to keep the pattern
@include media(">=tablet") { font-size: var(--fs-text-size-5); padding-top: var(--fs-spacing-4); } | |
@include media(">=tablet") { | |
font-size: var(--fs-text-size-5); | |
padding-top: var(--fs-spacing-4); | |
} |
@@ -12,6 +12,7 @@ module.exports = { | |||
titleTemplate: '%s: Search results title', | |||
descriptionTemplate: '%s: Search results description', | |||
noIndex: true, | |||
bodyH1: 'Showing results for:', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does the trick so far. For the long term, we should bring this from the hCMS search page settings.
What's the purpose of this pull request?
Render a
<h1 />
tag in server side.How it works?
If the flag
enableSearchSSR
is enabled, the server side rendering will return a<h1 />
tag with the search term.