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

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

Conversation

NadiiaBulmak
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! 😊 While your code meets most of the task requirements, there are a few critical issues that need to be addressed before we can approve it:

  1. Font Weight Definition: The font-weight is set to 300 in the body selector, but this weight is not defined in the @font-face rules. Please ensure you use a defined weight like 400 or 700 to avoid any display issues.

  2. CSS Maintenance: The use of !important in your CSS can make it harder to maintain and override styles. It's recommended to remove !important where possible and ensure specificity is correctly applied.

  3. Image Path Verification: Please verify that the src attribute for images points to the correct path, such as './images/Search.svg', to ensure images load correctly.

  4. Accessibility Improvement: The alt attribute for images should be more descriptive. Consider using a description like 'Search icon' instead of just 'Search' to improve accessibility.

Once these issues are addressed, your code will be in great shape! Keep up the great work and don't hesitate to reach out if you have any questions. 🌟

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

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

src/index.html Outdated
<button class="search-bar__button">
<img
src="./images/Search.svg"
alt="Search"

Choose a reason for hiding this comment

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

The alt attribute should be more descriptive to improve accessibility. Consider using a description like 'Search icon' instead of just 'Search'.

src/index.html Outdated
<button class="search-bar__button">
<img
src="./images/Search.svg"
alt="Search"

Choose a reason for hiding this comment

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

The alt attribute should be more descriptive to improve accessibility. Consider using a description like 'Search icon' instead of just 'Search'.

src/index.html Outdated
>
<button class="search-bar__button">
<img
src="./images/Search.svg"

Choose a reason for hiding this comment

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

Ensure that the src attribute points to the correct path of the image file. Verify that './images/Search.svg' is the correct path.

src/index.html Outdated
>
<button class="search-bar__button">
<img
src="./images/Search.svg"

Choose a reason for hiding this comment

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

Ensure that the src attribute points to the correct path of the image file. Verify that './images/Search.svg' is the correct path.


body {
font-family: Avenir, sans-serif;
font-weight: 300;

Choose a reason for hiding this comment

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

The font-weight is set to 300 in the body selector, but this weight is not defined in the @font-face rules. Consider using a defined weight like 400 or 700.

src/style.css Outdated
Comment on lines 76 to 78
font-family: Avenir, sans-serif !important;
font-weight: 400 !important;
color: #3d4e61 !important;

Choose a reason for hiding this comment

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

The use of !important can make the CSS harder to maintain and override. Consider removing !important if possible and ensuring specificity is correctly applied.

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.

Review Summary

Great job on your progress! 🎉 Your HTML and CSS files are mostly well-structured and adhere to the task requirements. However, there are a few areas that need attention:

  1. Font Weight Definition: The font-weight is set to 300 in the universal selector in your CSS file, but this weight is not defined in the @font-face rules. The defined weights are 400 and 900. To ensure proper display, consider using a defined weight or adjust the CSS to include the 300 weight.

  2. Accessibility Improvements: Adding <label> elements for input fields in your HTML will enhance accessibility, making it easier for screen readers to identify the purpose of each input field.

  3. CSS Maintenance: It's great that you avoided using !important in your CSS. Continue to ensure that specificity is correctly applied to maintain clean and maintainable code.

These improvements will not only enhance the functionality and accessibility of your code but also help you grow as a developer. Remember, addressing these issues will be crucial in your future projects. Keep up the good work and continue learning from these experiences! 🚀

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

Comment on lines +25 to +30
<input
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
class="search-bar__input search-bar__input_top"
/>

Choose a reason for hiding this comment

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

Consider adding a <label> element for the input field to improve accessibility. This helps screen readers to identify the purpose of the input field.

Comment on lines +37 to +42
<input
type="text"
data-qa="hover"
placeholder="Try “Los Angeles“"
class="search-bar__input search-bar__input_bottom"
/>

Choose a reason for hiding this comment

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

Similar to the previous form, consider adding a <label> element for this input field to enhance accessibility.


* {
font-family: Avenir, Arial, Helvetica, sans-serif;
font-weight: 300;

Choose a reason for hiding this comment

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

The font-weight is set to 300 here, but this weight is not defined in the @font-face rules. Consider using a defined weight like 400 or 900 to avoid any display issues.

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