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 solution #4497

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

Conversation

oleg19790807
Copy link

No description provided.

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 suggestions regarding class naming and including fallback fonts, which aren't critical issues but can improve the code quality. Keep it up and consider these tips for future work! 😊👍

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

data-qa="hover"
placeholder="Try “Los Angeles“"
/>
<body class="position">

Choose a reason for hiding this comment

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

Use semantic tags where possible. The class name 'position' does not indicate the purpose of the content. Consider using a more descriptive class name or semantic HTML5 elements to improve SEO and accessibility.

Comment on lines +21 to +24
<form
action="#"
data-qa="big"
class="form form__big"

Choose a reason for hiding this comment

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

The class name 'form__big' seems to represent the style or size of the form rather than its content. Class names should represent the meaning of the content, not the styles or tag names.

Comment on lines +26 to +30
<input
type="text"
data-qa="keypress"
class="big__input"
placeholder="Try “Los Angeles“"

Choose a reason for hiding this comment

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

The class name 'big__input' suggests a style or size which is not ideal. Class names should describe the content's meaning and not its appearance.

Comment on lines +34 to +37
<form
action="#"
data-qa="small"
class="form form__small"

Choose a reason for hiding this comment

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

The class name 'form__small' has the same issue as 'form__big' - it represents style rather than content. Consider renaming it to reflect the purpose or content of the form.

Comment on lines +39 to +42
<input
type="text"
class="small__input"
placeholder="Try “Los Angeles“"

Choose a reason for hiding this comment

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

Similar to 'big__input', the class 'small__input' should be renamed to better represent the content's meaning rather than its style.

border: 1px solid rgba(225, 231, 237, 1);
box-shadow: 0 1 8 0 rgba(61, 78, 97, 0.1);
border-radius: 4px;
font-family: Avenir, 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. You should include a generic font family as a fallback. For example: font-family: Avenir, Arial, sans-serif;.

background-size: 11px;
border: 1px solid rgba(225, 231, 237, 1);
box-shadow: 0 1px 8px 0 rgba(61, 78, 97, 0.1);
font-family: Avenir, sans-serif;

Choose a reason for hiding this comment

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

As with the previous font-family declaration, remember to include a generic fallback font. For example: font-family: Avenir, Arial, sans-serif;.

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