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

Compute currentColor #1815

Merged
merged 4 commits into from
Jun 19, 2023
Merged

Compute currentColor #1815

merged 4 commits into from
Jun 19, 2023

Conversation

TrySound
Copy link
Member

Ref #1536

Here replaced browser getComputedStyle for currentColor with computing from data.

color: inherit is now considered same as color: currentColor and displayed properly in UI.

Changed initial value for color from inherit to black (in mdn-data it's canvastext).

Code Review

  • hi @istarkov, I need you to do
    • conceptual review (architecture, feature-correctness)
    • detailed review (read every line)
    • test it on preview

Before requesting a review

  • made a self-review
  • added inline comments where things may be not obvious (the "why", not "what")

Before merging

  • tested locally and on preview environment (preview dev login: 5de6)
  • updated test cases document
  • added tests
  • if any new env variables are added, added them to .env.example and the builder/env-check.js if mandatory

Ref #1536

Here replaced browser getComputedStyle for currentColor with computing
from data.

`color: inherit` is now considered same as `color: currentColor` and
displayed properly in UI.

Changed initial value for color from inherit to black (in mdn-data it's
canvastext).
@TrySound TrySound requested a review from istarkov June 18, 2023 11:59
@vercel
Copy link

vercel bot commented Jun 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
webstudio-builder ✅ Ready (Inspect) Visit Preview Jun 19, 2023 11:52am

@TrySound TrySound merged commit 1be61e5 into main Jun 19, 2023
@TrySound TrySound deleted the compute-current-color branch June 19, 2023 13:27
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