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

Open
wants to merge 2 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.


Thank you for your hard work on this project! 😊 While your solution meets many of the task requirements, there's a critical issue that needs to be addressed before we can approve the pull request. The nth-child selectors in your CSS are not correctly activating the intended number of stars. For example, .stars--0 .stars__star:nth-child(-n + 0) will not activate any stars because -n + 0 results in no matches. You should adjust these selectors to match the desired number of active stars. For instance, .stars--0 .stars__star:nth-child(-n + 0) should be .stars--0 .stars__star:nth-child(-n + 1) to activate the first star, and so on for the other classes.

Additionally, the task requires each BEM block to have its own separate file, but currently, all styles are in a single CSS file. Please separate the CSS for each BEM block into its own file as per the task requirements.

Once these issues are resolved, your code will be ready for approval. Keep up the great work, and don't hesitate to reach out if you need any help! 🌟

✨ 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/style.css Outdated
Comment on lines 20 to 25
.stars--0 .stars__star:nth-child(-n + 0),
.stars--1 .stars__star:nth-child(-n + 1),
.stars--2 .stars__star:nth-child(-n + 2),
.stars--3 .stars__star:nth-child(-n + 3),
.stars--4 .stars__star:nth-child(-n + 4),
.stars--5 .stars__star:nth-child(-n + 5) {

Choose a reason for hiding this comment

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

The nth-child selectors are not correctly activating the intended number of stars. For example, .stars--0 .stars__star:nth-child(-n + 0) will not activate any stars because -n + 0 results in no matches. You should adjust these selectors to match the desired number of active stars. For instance, .stars--0 .stars__star:nth-child(-n + 0) should be .stars--0 .stars__star:nth-child(-n + 1) to activate the first star, and so on for the other classes.

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! 🎉 Your code meets most of the task requirements and constraints, and you've done well with the BEM methodology and CSS Flexbox implementation. However, there are a few areas to improve:

  • CSS Selector Usage: Avoid using tag names for styling in your CSS, except for html and body, as per the checklist requirement.
  • Yellow Stars with Pseudo-Selectors: Ensure that yellow stars are added with a container modifier and pseudo-selector, without extra classes.

These issues are not critical for the current functionality, but addressing them will enhance your code quality and adherence to best practices. Keep up the good work, and make sure to review the comments to improve your code. This decision is made to help you move forward with your learning. Keep learning and refining your skills! 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

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