Skip to content

DevTools editable props tweaks#18954

Merged
bvaughn merged 1 commit intofacebook:masterfrom
bvaughn:devtools-improved-editable-props
May 19, 2020
Merged

DevTools editable props tweaks#18954
bvaughn merged 1 commit intofacebook:masterfrom
bvaughn:devtools-improved-editable-props

Conversation

@bvaughn
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

sizebot commented May 19, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 38673fb

@sizebot
Copy link
Copy Markdown

sizebot commented May 19, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 38673fb

Copy link
Copy Markdown
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!


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

Choose a reason for hiding this comment

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

aattribute?

Copy link
Copy Markdown
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.

4 participants