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

task solution v1.01 #3503

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

task solution v1.01 #3503

wants to merge 3 commits into from

Conversation

HokageHEL
Copy link

Copy link

@VitaliyBondarenko1982 VitaliyBondarenko1982 left a comment

Choose a reason for hiding this comment

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

Need fix.

src/index.html Outdated
Comment on lines 12 to 19
<ul class="stars__list stars--0">
<li class="stars__item">
<div class="stars__star stars__star--inactive"></div>
</li>

<li class="stars__item">
<div class="stars__star stars__star--inactive"></div>
</li>

Choose a reason for hiding this comment

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

Suggested change
<ul class="stars__list stars--0">
<li class="stars__item">
<div class="stars__star stars__star--inactive"></div>
</li>
<li class="stars__item">
<div class="stars__star stars__star--inactive"></div>
</li>
<div class="stars stars--0">
<div class="stars__star"></div>
<div class="stars__star"></div>
...

stars is not a list. use just div.
no need any classes for star
use stars--1, stars--2... modifiers should be responsible about amount of active stars. use nth-child for it.

@HokageHEL
Copy link
Author

Hi, I have changed list to div and added nth-child to make stars active

Copy link

@IvanFesenko IvanFesenko left a comment

Choose a reason for hiding this comment

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

Well done

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