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

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

Conversation

leraMeleshchenko
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.

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! ✨

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 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:

  1. CSS Variable for Blue Color: Ensure you define and use a CSS variable for the blue color #00acdc to meet the task requirement.

  2. 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.

  3. Font Fallback: Consider changing the fallback font from 'serif' to 'sans-serif' to maintain visual consistency if 'Roboto' fails to load.

  4. Universal Color Setting: Setting a universal color of black for a and ul might not be suitable for all use cases. Ensure this does not conflict with other design requirements.

  5. Selector Specificity: Consider separating the combined a and ul selectors to allow for more specific styling in the future.

  6. Accessibility Enhancements:

    • Add an aria-label or aria-labelledby to the nav 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.

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="#">

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

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>

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,

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;

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;

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;

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;

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.

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 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"

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"

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;

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.

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