-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
base: master
Are you sure you want to change the base?
add task solution #4667
Conversation
NadiiaBulmak
commented
Dec 18, 2024
- DEMO LINK
- TEST REPORT LINK
There was a problem hiding this 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:
-
Font Weight Definition: The
font-weight
is set to 300 in thebody
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. -
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. -
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. -
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
font-family: Avenir, sans-serif !important; | ||
font-weight: 400 !important; | ||
color: #3d4e61 !important; |
There was a problem hiding this comment.
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.
There was a problem hiding this 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:
-
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. -
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. -
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! ✨
<input | ||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
class="search-bar__input search-bar__input_top" | ||
/> |
There was a problem hiding this comment.
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.
<input | ||
type="text" | ||
data-qa="hover" | ||
placeholder="Try “Los Angeles“" | ||
class="search-bar__input search-bar__input_bottom" | ||
/> |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.