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 #4554

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

add task solution #4554

wants to merge 1 commit into from

Conversation

schyrva
Copy link

@schyrva schyrva commented Oct 19, 2024

  • 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 your work! 🎉 While there are a few suggestions for improvement regarding class naming and semantic HTML, these are minor and do not impact the functionality or core requirements of your code. Keep up the good work and consider these tips for future projects to enhance code readability and accessibility. 😊

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

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

Choose a reason for hiding this comment

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

Consider using a more semantic tag like

or
with a role attribute for the form container to improve accessibility and SEO.

Comment on lines +21 to +27
<input
class="form__input form__input--big"
type="text"
data-qa="big"
data-action="keypress"
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 names 'form__input' and 'form__input--big' are well-structured, but ensure they represent the meaning of the content rather than the styles or tag names.

Comment on lines +29 to +35
<input
class="form__input form__input--small"
type="text"
data-qa="small"
data-action="hover"
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 names 'form__input' and 'form__input--small' should represent the meaning of the content rather than the styles or tag names.


body {
margin-top: 0;
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.

Consider adding a fallback font for 'Avenir' to ensure consistent rendering across different browsers and systems. The current setup already includes Arial and sans-serif as fallbacks, which is good practice.

padding-left: 33px;
background-position: 13px;
font-family: inherit;
font-weight: 400;

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. The checklist advises adding only top or bottom margins, but not both, to avoid potential margin collapse. Here, you have a bottom margin set for .form__input.

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