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

added solution #4491

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

added solution #4491

wants to merge 1 commit into from

Conversation

mmmy33
Copy link

@mmmy33 mmmy33 commented Sep 26, 2024

❗️ Copy this Checklist to the Pull Request description after links, and put - [x] before each point after you checked it.

  • Icon implemented using background-image CSS property
  • Inputs are written inside of 'form' tag with correctly passed attributes
  • All Typical Mistakes from BEM lesson theory are checked.
  • Code follows all the Code Style Rules ❗️

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.

Great job on the Pull Request! There are a few minor issues to work on in the future, like adjusting font-weight changes, adding fallback fonts, and being consistent with margins. Also, pay attention to indentation, empty lines for readability, and attribute formatting. These are not critical, but addressing them will make your code even better! Keep it up! 👍💻

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

placeholder="Try “Los Angeles“"
/>
</div>
</form>

Choose a reason for hiding this comment

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

Add empty lines between multiline sibling blocks of HTML. There should be an empty line between the two form elements to improve readability.

action="#"
data-qa="big"
>
<div class="searchbar__container">

Choose a reason for hiding this comment

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

Remember about correct indentation between parent and child elements. The div element should be indented two spaces inside the form element.

action="#"
data-qa="small"
>
<div class="searchbar__container">

Choose a reason for hiding this comment

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

Remember about correct indentation between parent and child elements. The div element should be indented two spaces inside the form element.

Comment on lines +20 to +22
.form:not(:last-child) {
margin-bottom: 20px;
margin-top: 20px;

Choose a reason for hiding this comment

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

Be consistent with your margins (Add only top or bottom, but not both). This helps to avoid potential margin collapse and keeps the styling consistent.

background-image: url('./images/Search.svg');
background-repeat: no-repeat;
box-sizing: border-box;
font-family: Avenir, Arial, sans-serif;

Choose a reason for hiding this comment

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

Remember to use fallback fonts - alternative font-family in case the main one doesn't work. It's good that you have 'Arial, sans-serif' as fallbacks, but ensure they are correctly ordered according to their similarity to the primary font.

.searchbar--small:focus,
.searchbar--big:focus {
border-color: rgb(225, 231, 237);
font-weight: 900;

Choose a reason for hiding this comment

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

Avoid changing font-weight on focus as it can cause layout shifts. Consider using other styles like border or color changes to indicate focus.

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