Skip to content

solution#5423

Open
LilyDev2024 wants to merge 7 commits into
mate-academy:masterfrom
LilyDev2024:develop
Open

solution#5423
LilyDev2024 wants to merge 7 commits into
mate-academy:masterfrom
LilyDev2024:develop

Conversation

@LilyDev2024
Copy link
Copy Markdown

lilitkravchenko added 2 commits May 1, 2026 11:13
Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

Your implementation has critical issues that violate the task requirements. The most important fix: Both search bars must be wrapped in <form> tags instead of <div> elements, as the checklist explicitly requires 'Inputs are written inside of form tag with correctly passed attributes'. Move the data-qa="big" and data-qa="small" attributes from their current locations to the form elements, and remove data-qa="hover" from the small input (only data-qa="keypress" was specified for the big input's input element). Add width: 100% to the .search class so search bars stretch to full width as required. Finally, fix the gap between search bars to be exactly 20px by removing margin-top from the small search bar and adding margin-bottom: 20px to the large search bar instead. The visual regression tests are failing (1-3% difference across all scenarios) which confirms the CSS styling doesn't match the expected design specifications.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread src/style.css Outdated
Comment thread src/style.css Outdated
Comment thread src/style.css
Comment thread src/style.css
Comment thread src/style.css
Comment thread src/style.css
Comment thread src/index.html
Comment thread src/index.html
Comment thread src/index.html Outdated
Comment thread src/index.html
data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<input
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The input is missing the name attribute which is typically required for form submissions. Consider adding appropriate name attributes for both search inputs.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

Your implementation is close to completion but has one critical missing requirement. The big search bar must have a 20px top indent as specified in the requirements — the wrapper <div> currently has no top spacing, causing the search bar to sit directly at the top of the page. Add padding-top: 20px to the wrapper div or margin-top: 20px to the big search form. This is also causing visual regression tests to fail with 6%+ differences. Additionally, fix the @font-face syntax by adding quotes around the format values: format('ttf') instead of format(ttf). The form wrapping, data-qa attributes, and search bar styling are otherwise correctly implemented.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread src/style.css
.search {
box-sizing: border-box;
border: 1px solid rgba(225, 231, 237, 1);
border-radius: 4px;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The big search bar must have top indent 20px (requirement: 'the big search bar must have top indent 20px'). Add padding-top: 20px to this wrapper div.

Comment thread src/index.html
@@ -17,16 +17,33 @@
/>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The requirement 'the big search bar must have top indent 20px' is not implemented. Add margin-top: 20px to the body or .search--large class to create this top spacing.

Copy link
Copy Markdown

@brespect brespect left a comment

Choose a reason for hiding this comment

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

Well done!

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.

3 participants