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

task solution #4473

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

task solution #4473

wants to merge 1 commit into from

Conversation

D0dgerJ
Copy link

@D0dgerJ D0dgerJ commented Sep 18, 2024

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 keep in mind for the future, such as ensuring browser compatibility with properties like 'margin-block' and adding a generic font family as a fallback. Also, remember to use actual Unicode characters for quotes and maintain consistent indentation for better readability. Keep up the good work! 😊👍

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

<form
class="page__form"
action="#"
data-qa="big"

Choose a reason for hiding this comment

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

Keep your attributes correctly formatted. If the HTML element has long attribute values or the number of attributes is more than 2 - start each one, including the first, on the new line with 2-space indentation related to the tag.

class="search-bar search-bar--big"
type="text"
data-qa="keypress"
placeholder="Try &#34;Los Angeles&#34;"

Choose a reason for hiding this comment

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

Avoid using HTML character references for quotes in attribute values if possible. Instead, use the actual Unicode characters or escape sequences. This improves readability.

class="search-bar search-bar--small"
type="text"
data-qa="hover"
placeholder="Try &#34;Los Angeles&#34;"

Choose a reason for hiding this comment

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

Avoid using HTML character references for quotes in attribute values if possible. Instead, use the actual Unicode characters or escape sequences. This improves readability.


html {
color: #3d4e61;
font-family: Avenir, Helvetica, sans-serif;

Choose a reason for hiding this comment

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

It's great that you've included a fallback font for Avenir. However, remember to include a generic family as well, such as 'serif' or 'sans-serif', to cover all bases in case the specified fonts are unavailable.

}

.page__form {
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. You've added a top margin here, so ensure you're not adding bottom margins to other elements that are vertically adjacent to avoid potential margin collapse issues.

}

body {
margin-block: 0;

Choose a reason for hiding this comment

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

Using 'margin-block' is not a common practice and may not be supported in all browsers. It's better to stick with 'margin-top' and 'margin-bottom' for clarity and broader compatibility.

line-height: 19px;
background-position: 13px center;
background-size: 11px;
font-weight: 400;

Choose a reason for hiding this comment

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

You've set the font-weight to 400 here, which is unnecessary if it's the same as the inherited weight. If it's meant to override a different weight, then it's fine to keep it.

Copy link

@volodymyr-soltys97 volodymyr-soltys97 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