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

add task solution #4738

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add task solution #4738

wants to merge 2 commits into from

Conversation

sansamiste
Copy link

Copy link

@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.


It looks like there are a couple of critical issues that need to be addressed before we can proceed. The self-closing <form> tag in your HTML is not valid and can affect the functionality of your form. Additionally, the box-shadow property in your CSS needs to be defined with a complete value to ensure it works as expected. Once these are fixed, your code will be in great shape! Keep up the good work, and don't hesitate to reach out if you need any help! 😊

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

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

data-qa="keypress"
placeholder="Try “Los Angeles“"
/>
<form

Choose a reason for hiding this comment

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

The <form> tag is incorrectly self-closing. In HTML, form elements should not be self-closing. Ensure to open and close the <form> tag properly.

src/style.css Outdated
font-family: Avenir, sans-serif;
font-weight: 700;
outline: none;
box-shadow: var(--hover-shadow);

Choose a reason for hiding this comment

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

The box-shadow property in the .search__input:focus selector is currently set to var(--hover-shadow), which is just a color value. Ensure that box-shadow is defined with a complete value, including offsets and blur radius, like 0 4px 4px 0 var(--hover-shadow).

Copy link

@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

Great job on addressing the previous issues with your HTML and CSS files! 🎉 Your current implementation meets the task requirements and constraints. Here are some key points to consider for future improvements:

  1. HTML File:

    • You've successfully corrected the <form> tags, ensuring they are not self-closing. This is crucial for the proper functionality of your forms. Keep up the good work!
  2. CSS File:

    • The box-shadow property is now defined with a complete value, which is essential for achieving the desired visual effect. Remember to always include all necessary parameters for CSS properties.

While the decision is to APPROVE your Pull Request to help you move forward with your learning, please review the comments to further improve your code. Addressing these critical issues in the future will enhance your coding skills and prevent similar problems. Keep learning and refining your skills! 🚀

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

Comment on lines +22 to +25
<form
class="search search__big"
data-qa="big"
>

Choose a reason for hiding this comment

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

The <form> tag should not be self-closing. It needs an opening <form> tag and a closing </form> tag to properly encapsulate the form elements.

Comment on lines +34 to +37
<form
class="search search__small"
data-qa="small"
>

Choose a reason for hiding this comment

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

Similar to the previous form, this <form> tag should not be self-closing. Ensure it has a proper opening and closing tag.

}

:root {
--box-shadow: rgba(61, 78, 97, 0.1);

Choose a reason for hiding this comment

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

The --box-shadow variable is defined with only a color value. The box-shadow property typically requires at least the horizontal and vertical offsets, and optionally the blur radius, spread radius, and color. Consider defining --box-shadow with a complete value, such as 0 1px 8px 0 rgba(61, 78, 97, 0.1).

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