Repository navigation
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
The stopwatch’s declared 80vmin width and height currently measure the content box, so the 1vmin border on each side makes the rendered size 82vmin × 82vmin, missing the required overall dimensions. In src/styles/index.scss, apply box-sizing: border-box to the stopwatch or adjust its declared dimensions to account for the border; then recheck the visual regression tests. The PR description also needs the required demo link and completed checklist. These are the outstanding requirements; the hands, animations, colors, and speed-up modifier otherwise appear to be implemented correctly.
✨ 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
| width: 80vmin; | ||
| height: 80vmin; | ||
| border: 1vmin dotted #000; |
There was a problem hiding this comment.
Because the default box-sizing is content-box, the 1vmin border is added outside these dimensions, making the stopwatch’s outer size 82vmin × 82vmin. Use border-box sizing or account for the border so its total size is 80vmin × 80vmin.
There was a problem hiding this comment.
Hi!
I tried to fix the stopwatch dimensions, but the issue is still not resolved.
I added box-sizing: border-box; and also tried adjusting the width and height. However, the BackstopJS visual tests are still failing.
Could you please check my code again and explain exactly what I need to change to make the tests pass?
Thank you for your help!
Alex-2992
left a comment
There was a problem hiding this comment.
Hi!
I'm having trouble understanding why my tests are still failing.
I've checked my HTML and SCSS, corrected the stopwatch dimensions to 80vmin × 80vmin, and added box-sizing: border-box; as suggested.
However, all 3 BackstopJS tests are still failing. When I compare the reference and test screenshots, the differences seem very small, mostly around the circle borders and positioning.
I've tried to fix the issue several times, but I don't understand what exactly is wrong.
Could you please explain which specific part of my code is causing these differences and what I need to change?
I would really appreciate your help. Thank you!
| width: 80vmin; | ||
| height: 80vmin; | ||
| border: 1vmin dotted #000; |
There was a problem hiding this comment.
Hi!
I tried to fix the stopwatch dimensions, but the issue is still not resolved.
I added box-sizing: border-box; and also tried adjusting the width and height. However, the BackstopJS visual tests are still failing.
Could you please check my code again and explain exactly what I need to change to make the tests pass?
Thank you for your help!
Anton-Kuchmasov
left a comment
There was a problem hiding this comment.
Hey,
Your solution is GTG, but please - don't forget to deploy your apps & provide a DEMO link in further tasks
can't complain about code - LGTM!
From time to time, BackstopJS works quite bad with CSS Animations, |
Implemented the stopwatch layout and animations using HTML and SCSS.
One BackstopJS test passes, but two tests are still failing due to visual differences.
Could you please review my implementation and help me understand what needs to be fixed?