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

Develop #4550

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

Conversation

eugenia-andropova
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.

Thank you for your hard work on this pull request! There are a few critical issues that need to be addressed before we can proceed. The class naming inconsistencies and the incorrect use of the ::placeholder pseudo-element could lead to functionality issues, and the duplicate 'name' attribute for forms might cause conflicts. Please make these adjustments, and feel free 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! ✨

src/index.html Outdated Show resolved Hide resolved
src/style.css Outdated
margin-top: 20px;
}

.search-bar::placeholder {

Choose a reason for hiding this comment

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

The selector .search-bar::placeholder is incorrect. The ::placeholder pseudo-element should be used with an input element, like .search-bar__input::placeholder.

src/style.css Outdated
outline: none;
}

.search_bar__input--big {

Choose a reason for hiding this comment

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

There is an inconsistency in class naming. The class .search_bar__input--big uses an underscore instead of a hyphen. It should be .search-bar__input--big to maintain consistency with the BEM naming convention used elsewhere.

src/style.css Outdated
background-position: 13px center;
}

.search_bar__input--big:hover,

Choose a reason for hiding this comment

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

There is an inconsistency in class naming. The class .search_bar__input--big:hover uses an underscore instead of a hyphen. It should be .search-bar__input--big:hover to maintain consistency with the BEM naming convention used elsewhere.

src/style.css Outdated
box-shadow: 0 3px 8px 0 rgba(61, 78, 97, 0.2);
}

.search_bar__input--big:focus,

Choose a reason for hiding this comment

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

There is an inconsistency in class naming. The class .search_bar__input--big:focus uses an underscore instead of a hyphen. It should be .search-bar__input--big:focus to maintain consistency with the BEM naming convention used elsewhere.

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 some areas for improvement, such as adding fallback fonts and refining naming conventions, these are excellent learning opportunities. Remember to address these issues in future projects to enhance your skills. Keep up the great work and continue learning from your experiences!

✨ 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="page">

Choose a reason for hiding this comment

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

The class name 'page' should represent the meaning of the content rather than the style or tag name. Consider using a more descriptive class name.

action="#"
method="post"
data-qa="big"
name="search-bar__input--big"

Choose a reason for hiding this comment

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

The name attribute 'search-bar__input--big' includes double underscores and dashes, which are typically used in class names for BEM (Block Element Modifier) methodology. Consider using a more appropriate naming convention for the name attribute.

action="#"
method="post"
data-qa="small"
name="search-bar__input--small"

Choose a reason for hiding this comment

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

The name attribute 'search-bar__input--small' includes double underscores and dashes, which are typically used in class names for BEM (Block Element Modifier) methodology. Consider using a more appropriate naming convention for the name attribute.

}

.page {
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.

Consider adding a fallback font to ensure that if 'Avenir' is not available, the browser can use an alternative font. This aligns with the checklist item: 'Remember to use fallback fonts - alternative font-family in case the main one doesn't work'.

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