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

DevTools editable props tweaks #18954

Merged
merged 1 commit into from May 19, 2020

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented May 19, 2020

  1. Made non-editable prop text higher contrast (easier to read)
  2. Also makes it stand out as different from dimmer placeholder text for "new prop"

Before

Light mode

Screen Shot 2020-05-19 at 9 11 05 AM

Dark mode

Screen Shot 2020-05-19 at 9 10 56 AM

After

Light mode

Screen Shot 2020-05-19 at 9 08 56 AM

Dark mode

Screen Shot 2020-05-19 at 9 10 20 AM

@bvaughn bvaughn requested a review from gaearon May 19, 2020 16:12
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels May 19, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented May 19, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 38673fb:

Sandbox Source
nice-dhawan-5ghvc Configuration

@sizebot
Copy link

sizebot commented May 19, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 38673fb

@sizebot
Copy link

sizebot commented May 19, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 38673fb

Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

nice, thanks!

@@ -3,7 +3,7 @@
}

.Name {
color: var(--color-dim);
color: var(--color-aattribute-name-not-editable);
Copy link
Collaborator

Choose a reason for hiding this comment

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

aattribute?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it's like "attribute" but better

1. Made non-editable prop text higher contrast (easier to read)
2. Also makes it stand out as different from dimmer placeholder text for "new prop"
@bvaughn bvaughn force-pushed the devtools-improved-editable-props branch from 03070a1 to 38673fb Compare May 19, 2020 16:41
@bvaughn bvaughn merged commit 5aa967b into facebook:master May 19, 2020
@bvaughn bvaughn deleted the devtools-improved-editable-props branch May 19, 2020 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants