-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 #5609
base: master
Are you sure you want to change the base?
add task solution #5609
Conversation
leraMeleshchenko
commented
Oct 27, 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.
Great job on implementing the task requirements! 🎉 Your code is well-structured and meets almost all the criteria. The only minor adjustment needed is to use a CSS variable for the blue color. Once that's done, your implementation will be perfect. Keep up the excellent work and continue refining your skills! 😊
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
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 project! 😊 While you've done a great job addressing most of the task requirements, there are a few critical accessibility issues that need to be resolved before we can approve the pull request:
-
CSS Variable for Blue Color: Ensure you define and use a CSS variable for the blue color
#00acdc
to meet the task requirement. -
Contrast and Accessibility: Verify that the hover color
#00acdc
and the black color for.nav__item
provide sufficient contrast against their backgrounds to meet accessibility standards. -
Font Fallback: Consider changing the fallback font from 'serif' to 'sans-serif' to maintain visual consistency if 'Roboto' fails to load.
-
Universal Color Setting: Setting a universal color of black for
a
andul
might not be suitable for all use cases. Ensure this does not conflict with other design requirements. -
Selector Specificity: Consider separating the combined
a
andul
selectors to allow for more specific styling in the future. -
Accessibility Enhancements:
- Add an
aria-label
oraria-labelledby
to thenav
element for better accessibility. - Provide a more descriptive
alt
text for the logo image to aid screen readers. - Ensure the
href
attribute in anchor tags is descriptive to provide meaningful link destinations.
- Add an
Addressing these issues will not only meet the task requirements but also enhance the accessibility and maintainability of your code. Keep up the great work, and feel free 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
</head> | ||
<body> | ||
<h1>Moyo header</h1> | ||
<header class="header"> | ||
<a href="#"> |
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 more descriptive href
attribute for the anchor tag to improve accessibility and provide a meaningful link destination.
<h1>Moyo header</h1> | ||
<header class="header"> | ||
<a href="#"> | ||
<img |
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 for the image tag is set to 'logo'. It's recommended to provide a more descriptive text for the alt
attribute to improve accessibility for screen readers.
/> | ||
</a> | ||
|
||
<nav> |
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 an aria-label
or aria-labelledby
attribute to the nav
element to improve accessibility by providing a label for the navigation section.
src/reset.css
Outdated
border-spacing: 0; | ||
} | ||
|
||
a, |
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 selector combining a
and ul
might not be ideal if you plan to apply different styles to these elements in the future. Consider separating these selectors to allow for more specific styling.
src/reset.css
Outdated
a, | ||
ul { | ||
text-decoration: none; | ||
color: black; |
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.
Setting a universal color of black for a
and ul
might not be suitable for all use cases. Ensure that this does not conflict with your design requirements elsewhere in your stylesheets.
src/style.css
Outdated
.nav__item { | ||
display: flex; | ||
/* stylelint-disable-next-line font-family-name-quotes */ | ||
font-family: 'Roboto', serif; |
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-family declaration includes 'Roboto' with a fallback to 'serif'. Since 'Roboto' is a sans-serif font, consider using a more appropriate fallback like 'sans-serif' to maintain visual consistency if 'Roboto' fails to load.
display: flex; | ||
/* stylelint-disable-next-line font-family-name-quotes */ | ||
font-family: 'Roboto', serif; | ||
color: black; |
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 color for .nav__item
is set to black. Ensure that this color choice provides sufficient contrast against the background for better accessibility.
src/style.css
Outdated
} | ||
|
||
.nav__item:hover { | ||
color: #00acdc; |
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 hover color for .nav__item
is set to #00acdc. Verify that this color provides enough contrast with the background to meet accessibility standards.
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.
Great job on your submission! 🎉 While your code meets most of the task requirements, there are a few areas for improvement. Ensure that the data-qa
attribute is necessary for your project, and consider removing it if not. Make sure URLs in href
attributes are in lowercase to follow conventions. Also, review your CSS to ensure properties like text-decoration
are applied correctly. Keep up the good work and use this feedback to refine your skills!
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
|
||
<li class="nav__link"> | ||
<a | ||
href="/laptop-Computers" |
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 URL in the href attribute should be in lowercase to follow standard URL conventions. Consider changing '/laptop-Computers' to '/laptop-computers'.
<a | ||
href="/laptop-Computers" | ||
class="nav__item" | ||
data-qa="hover" |
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 'data-qa' attribute is used for testing purposes. Ensure this is necessary for your project requirements. If not, consider removing it to keep the HTML clean.
.nav__list { | ||
display: flex; | ||
margin: 0; | ||
text-decoration: none; |
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 'text-decoration: none;' property on the '.nav__list' class might not have any effect since 'text-decoration' is typically applied to inline elements like links. Consider applying this property to '.nav__item' or '.nav__link' if the intention is to remove underlines from links.