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

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

Conversation

annalahmaniuk
Copy link

  • DEMO LINK
  • TEST REPORT LINK
    x Yellow stars are added with container modifier + pseudo-selector (NO extra classes)
    x Each BEM block has its own separate file
    x All Typical Mistakes from BEM lesson theory are checked.
    x Code follows all the Code Style Rules ❗️

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 submission! 😊 You've done a great job with the HTML and CSS structure, and your approach to styling the stars is on the right track. However, there are a couple of critical issues that need to be addressed before we can approve your work:

  1. BEM File Structure: The task requires that each BEM block has its own separate file. Currently, all styles are in a single style.css file. Please separate the styles into individual files for each BEM block.

  2. CSS Selectors: There's a logical error in your nth-child selectors. For example, .stars--0 .stars__star:nth-child(-n + 0) will not select any stars. You need to adjust these selectors to correctly reflect the number of active stars. For instance, .stars--0 .stars__star:nth-child(-n + 1) should be used to select the first star, and so on.

Once these issues are resolved, your code will be in great shape! Keep up the good 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 23 to 28
.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 targeting the intended number of stars. For example, .stars--0 .stars__star:nth-child(-n + 0) will not select any stars because -n + 0 results in zero, which is not a valid index. You should adjust the selectors to correctly reflect the number of active stars for each class. For instance, .stars--0 .stars__star:nth-child(-n + 0) should be .stars--0 .stars__star:nth-child(-n + 1) to select the first star, and so on.

@annalahmaniuk
Copy link
Author

fixed task

Copy link
Author

@annalahmaniuk annalahmaniuk left a comment

Choose a reason for hiding this comment

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

fixed task

Copy link

@etojeDenys etojeDenys 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