Conversation
levchenkoeva
commented
Apr 13, 2026
- DEMO LINK
- TEST REPORT LINK
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am asking for changes because there are a few checklist violations and visual differences that are considered blocking for this task, even though most of the requirements are implemented correctly.
The critical issues are:
- In
src/style.cssnear the top, you use the universal selector* { ... }to reset margins/padding/box-sizing, which is explicitly disallowed by the Code Style Rules [CHECKLIST ITEM #7]; instead, reset only specific elements likehtml, body(and maybeimg) withmargin: 0; padding: 0; box-sizing: border-box;. - In
src/style.css, the rule.nav_item:not(:first-child)currently includesmargin-bottom: 16px, which creates an unwanted margin after the last<li>and violates the requirement that there must be no margins before the first and after the last list items; remove this vertical margin and keep only horizontal spacing (e.g.margin-leftor.nav_item + .nav_item { margin-left: 30px; }). - You define
.logo { height: 40px; }insrc/style.cssand also setheight: 15px;on.nav_link; the header height must be controlled in one place via the nav links only [CHECKLIST ITEM #1], so remove the explicit height from.logo(or otherwise ensure only the link height determines the header height). - The
.logoclass is defined insrc/style.cssbut not applied to the<img>insrc/index.html(the image lacksclass="logo"), so your intended logo sizing isn’t used and this contributes to the Backstop visual diffs; either addclass="logo"to the<img>or adjust the selector so the image is correctly styled.
As a minor clean-up, you can remove the redundant position: relative from .is-active since .nav_link already has it, which keeps the CSS clearer. Once you address these points, your solution should both satisfy the checklist and pass the visual tests, and the rest of your implementation (semantic structure, flex layout, Roboto usage, active/hover states) is on the right track—good work so far.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
| <img | ||
| src="./images/logo.png" |
There was a problem hiding this comment.
You defined .logo in CSS but the image in HTML has no class. The logo styles (height, margin) won't apply. Add the class to the image or the wrapping link (for example <img class="logo" ...>), or update the CSS to target the element actually used.
| <img | ||
| src="./images/logo.png" | ||
| alt="Moyo logo" |
There was a problem hiding this comment.
This rule adds a vertical margin to many list items (margin-bottom: 16px) which creates a margin after the last item. The requirements state: "There should not be margins before the first and after the last list items." Remove the margin-bottom and keep only the horizontal spacing (use margin-left on not-first items or the sibling selector).
| href="https://fonts.gstatic.com" | ||
| crossorigin="anonymous" | ||
| /> | ||
| <link | ||
| href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" | ||
| rel="stylesheet" | ||
| /> | ||
| </head> | ||
| <body> | ||
| <h1>Moyo header</h1> | ||
| <header class="header"> | ||
| <a href="#"> | ||
| <img | ||
| src="./images/logo.png" | ||
| alt="Moyo logo" | ||
| /> | ||
| </a> | ||
| <nav class="nav"> | ||
| <ul class="nav_list"> | ||
| <li class="nav_item"> | ||
| <a | ||
| class="nav_link is-active" | ||
| href="#" | ||
| > |
There was a problem hiding this comment.
This violates checklist item #1: "Header height is set in 1 place (for the links)" — you set height: 15px on .nav_link but also set height: 40px on .logo. The task requires the header height to be driven by the nav links only (set in a single place). Remove the extra height declaration (for example remove .logo height) or adjust so only the nav links determine header height.
| <li class="nav_item"> | ||
| <a | ||
| class="nav_link" | ||
| href="#" | ||
| > | ||
| Samsung |
There was a problem hiding this comment.
Minor redundancy: .nav_link already has position: relative so adding position: relative again on .is-active is unnecessary. You can remove the duplicate position: relative from .is-active to keep CSS cleaner.
| * { | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } |
There was a problem hiding this comment.
This violates checklist item #7: "Code follows all the Code Style Rules ❗️". The stylesheet uses the universal selector * to reset margin/padding at these lines, but the Code Style Rules explicitly disallow the * selector. Replace this reset with a permitted approach (for example html, body { margin: 0; padding: 0; }) or reset only the specific elements you need.
| .nav_item:not(:first-child) { | ||
| margin-left: 30px; | ||
| margin-bottom: 16px; |
There was a problem hiding this comment.
There should not be margins before the first and after the last list items. The rule .nav_item:not(:first-child) includes margin-bottom: 16px (vertical spacing) which will add a margin after the last list item and thus violates that requirement. Remove the vertical margin and keep only the horizontal spacing (use margin-left or an adjacent-sibling selector like .nav_item + .nav_item { margin-left: 30px; }).
| .nav_item:not(:first-child) { | ||
| margin-left: 30px; | ||
| margin-bottom: 16px; | ||
| } |
There was a problem hiding this comment.
The CSS defines a .logo class (height: 40px) but the <img> for the logo in the HTML doesn't have class="logo". As a result the logo sizing/behavior from CSS won't apply and the header won't match the Pixel Perfect requirements. Add class="logo" to the <img> (or update the CSS selector) so the logo is styled as intended.