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

feat: add h1 in EmptySearch component #2659

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pedromtec
Copy link
Contributor

@pedromtec pedromtec commented Jan 30, 2025

What's the purpose of this pull request?

Render a <h1 /> tag in server side.

Captura de Tela 2025-01-31 às 10 16 39

How it works?

If the flag enableSearchSSR is enabled, the server side rendering will return a <h1 /> tag with the search term.

Copy link

vercel bot commented Jan 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview Jan 31, 2025 1:14pm

Copy link

codesandbox-ci bot commented Jan 30, 2025

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.

@pedromtec pedromtec force-pushed the SFS-2087-Flagship-blocker-Americanas-Definir-estrat-gia-para-atualiza-o-da-tag-H1-na-p-gina-de-Search branch from 4842990 to 0f54346 Compare January 31, 2025 13:13
@pedromtec pedromtec marked this pull request as ready for review January 31, 2025 13:19
@pedromtec pedromtec requested a review from a team as a code owner January 31, 2025 13:19
@pedromtec pedromtec requested review from eduardoformiga and lucasfp13 and removed request for a team January 31, 2025 13:19
@@ -13,6 +14,25 @@
}
}

[data-fs-search-loading] {

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

h1 {
font-size: var(--fs-text-size-4);

@include media(">=tablet") { font-size: var(--fs-text-size-5); padding-top: var(--fs-spacing-4); }
Copy link
Member

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

Suggested change
@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:',
Copy link
Member

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.

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