Skip to content

Develop#7735

Open
ArtemKalchenko1 wants to merge 5 commits intomate-academy:masterfrom
ArtemKalchenko1:develop
Open

Develop#7735
ArtemKalchenko1 wants to merge 5 commits intomate-academy:masterfrom
ArtemKalchenko1:develop

Conversation

@ArtemKalchenko1
Copy link
Copy Markdown

Copy link
Copy Markdown

@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

I am requesting changes because several required checklist items are missing or implemented incorrectly, and these are currently blocking the automated tests from passing. The main issues are: there is no <nav> element wrapping your <ul class="nav-menu"> in src/index.html (required semantic structure, [CHECKLIST ITEM #3]), the active link uses class="isActive" instead of the exact is-active name, and the 4th link (Laptops & Computers) is missing the data-qa="hover" attribute (both required for tests, [CHECKLIST ITEMS #9 and #10]). In src/style.css, you are using gap on the flex container for spacing (.nav-menu { gap: ... }), which must be replaced with margins on the list items ([CHECKLIST ITEM #13]), and the blue underline for the active link is done with border-bottom and padding instead of a ::after pseudo-element on the .is-active link with no padding on links ([CHECKLIST ITEMS #12, #16, #26]). The links also need a consistent height set in one place (on the link, not the header) and vertical centering adjusted accordingly ([CHECKLIST ITEMS #6 and #21]), and font-weight: 500px; must be corrected to font-weight: 500; so the Roboto embedding is valid ([CHECKLIST ITEMS #2 and #28]). Additionally, your CSS currently styles anchor tags directly (e.g. .nav-menu a, a.isActive) and does not use text-transform: uppercase; for the nav text, so move these styles to a link class like .nav-menu__link and apply uppercase there, then target .nav-menu__link.is-active for the active state ([CHECKLIST ITEMS #23 and #40]). As minor improvements, you can tidy HTML formatting by adding blank lines between multi-line <li> blocks and wrapping very long lines to stay under 80 characters, but these are not test blockers. Once you address the semantic <nav> element, class/attribute names, spacing without gap, correct pseudo-element underline, link height/centering, and font-weight, your solution should be in a good position to pass the tests and match the design much more closely.


✨ 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

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread src/style.css
padding: 10px 50px;
}

.nav-menu {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The markup uses a plain

    for navigation but the checklist requires the semantic nav element. Quote: "use semantic tags: <header>, <img>, <nav>, <ul>, <li> and <a>" [CHECKLIST ITEM #3]. Wrap the list inside a (keep the logo outside the nav).

Comment thread src/style.css
display: flex;
list-style: none;
gap: 20px;
margin: 0;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The active link class is incorrect. Quote: "❗️ the blue link with a line below should have a class is-active in addition to any other classes you add" [CHECKLIST ITEM #9]. Replace isActive with the exact is-active class name.

Comment thread src/style.css

.nav-menu a:hover {
color: var(--blue);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The 4th link is missing the required test attribute. Quote: "❗️ add data-qa="hover" attribute to the 4th link for testing (Laptops & computers)" [CHECKLIST ITEM #10]. Add data-qa="hover" to the 4th anchor element.

Comment thread src/style.css Outdated
.nav-menu {
display: flex;
list-style: none;
gap: 20px;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The CSS uses the flex gap property, but tests forbid it. Quote: "don't use the flex gap property for indents. It's not supported in tests, use margin instead" [CHECKLIST ITEM #13]. Replace gap with spacing via margins on the list items.

Comment thread src/style.css Outdated
padding: 0;
}

.nav-menu a {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Link styling should make text uppercase via CSS and you should avoid styling by tag selectors. Quote: "CSS is used to show all letters in Uppercase (don't type them in HTML)" [CHECKLIST ITEM #23] and "Don't use tag names for styling (except html and body)" [CHECKLIST ITEM #40]. Move a styling to a class-based selector (e.g. .nav-menu__link) and add text-transform: uppercase; there.

Comment thread src/index.html Outdated
<ul class="nav-menu">
<li>
<a
href="#"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #13: "don't use the flex gap property for indents. It's not supported in tests, use margin instead" — you used gap: 20px on .nav-menu. Remove gap and add horizontal margins to list items (taking care to avoid margins before the first and after the last items).

Comment thread src/index.html Outdated
>
Apple
</a>
</li>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates multiple checklist items: #40 "Don't use tag names for styling (except html and body)", #23 "CSS is used to show all letters in Uppercase (don't type them in HTML)", and #6 "the height should be set for nav links (not the header), take it from the design" — you target links via .nav-menu a (tag used) and there is no text-transform: uppercase nor a height set on links. Use a class for links (e.g. .nav__link), add text-transform: uppercase, and set the link height in one place (not the header).

Comment thread src/index.html Outdated
<li>
<a
href="#"
>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #40: "Don't use tag names for styling (except html and body)" — the selector a.isActive uses a tag name and also uses the wrong class name. Use a class-based selector like .nav__link.is-active instead of a.isActive.

Comment thread src/index.html Outdated
>
Laptops & Computers
</a>
</li>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #12: "use the ::after and position it relative to a link with is-active class" (and #26: pseudo-element for the line) — currently you use border-bottomon the active link. Replace that with a positioned::afterpseudo-element on the.is-active` link to draw the blue line (so tests that look for a pseudo-element pass).

Comment thread src/index.html Outdated
Laptops & Computers
</a>
</li>
<li>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #16: "Nav Links should not have any padding but have the text centered" — you added padding-bottom: 18.5px to the active link. Remove padding from links and align text by setting link height and centering (line-height or flex) so spacing is consistent and height is defined in one place.

Copy link
Copy Markdown

@Anton-Kuchmasov Anton-Kuchmasov left a comment

Choose a reason for hiding this comment

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

Good job!

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.

3 participants