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

solution #4898

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

solution #4898

wants to merge 1 commit into from

Conversation

minimal005
Copy link

@minimal005 minimal005 commented Oct 4, 2024

  • DEMO LINK

  • TEST REPORT LINK

  • Yellow stars are added with container modifier + pseudo-selector (NO extra classes)

  • Each BEM block has its own separate file

  • All Typical Mistakes from BEM lesson theory are checked.

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

Great job on adhering to most of the checklist requirements! 🌟 There are a few minor improvements suggested, like adding a fallback background color and adjusting attribute formatting, but these don't significantly impact the overall functionality or quality of your code. Keep up the good work, and consider these tips for your next project to make your code even better! 👍

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

Comment on lines +16 to +22
<div class="stars stars--0">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>

Choose a reason for hiding this comment

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

Add empty lines between multiline sibling blocks of HTML to improve readability. In this case, add an empty line after the closing tag of each '.stars' block.

Comment on lines +1 to +3
body {
margin: 0;
}

Choose a reason for hiding this comment

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

According to the checklist, avoid using tag names for styling. It's recommended to style elements using classes. However, the body tag is an exception to this rule, so this is just a general reminder for the rest of your CSS.

.stars__star {
width: 16px;
height: 16px;
background: url(images/star.svg) center no-repeat;

Choose a reason for hiding this comment

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

Consider adding a fallback background color for the .stars__star in case the image fails to load, to maintain an acceptable user experience.

.stars--3 .stars__star:nth-child(-n + 3),
.stars--4 .stars__star:nth-child(-n + 4),
.stars--5 .stars__star:nth-child(-n + 5) {
background: url(images/star-active.svg) center no-repeat;

Choose a reason for hiding this comment

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

Just like with the regular star, it's a good practice to add a fallback background color for the .stars--x .stars__star active state.

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