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

Change disabled color from muted to custom primer disabled color #1512

Merged
merged 7 commits into from
Oct 18, 2021

Conversation

pksjce
Copy link
Collaborator

@pksjce pksjce commented Oct 13, 2021

Summary 👻

Update primer/primitives to 5.1.0.
Start using colors.primer.fg.disabled instead of colors.fg.muted.
Context in https://github.com/github/primer/issues/292
Similar change in primer/css in primer/css#1677

Before n After ✨

Component Before After
TextInput Screen Shot 2021-10-13 at 3 43 02 pm Screen Shot 2021-10-13 at 3 43 23 pm
Default Button Screen Shot 2021-10-13 at 3 36 05 pm Screen Shot 2021-10-13 at 3 35 41 pm
Invisible Button Screen Shot 2021-10-13 at 3 44 06 pm Screen Shot 2021-10-13 at 3 43 48 pm
Action list item Screen Shot 2021-10-13 at 3 38 32 pm Screen Shot 2021-10-13 at 3 38 41 pm

@pksjce pksjce requested review from a team and dgreif October 13, 2021 06:05
@changeset-bot
Copy link

changeset-bot bot commented Oct 13, 2021

🦋 Changeset detected

Latest commit: 53fdc9b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2021

size-limit report 📦

Path Size
dist/browser.esm.js 53.9 KB (+0.01% 🔺)
dist/browser.umd.js 54.28 KB (+0.02% 🔺)

@colebemis
Copy link
Contributor

@pksjce These CI are caused by breaking changes in Primer Primitives v5. I'm going to open a separate PR to fix these errors.

@colebemis
Copy link
Contributor

Here's a draft of the PR to update primitives: #1514

Copy link
Contributor

@simurai simurai left a comment

Choose a reason for hiding this comment

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

Should we include these two components as well:

@pksjce
Copy link
Collaborator Author

pksjce commented Oct 15, 2021

@simurai - Updated the color on a bunch of more places!

Copy link
Contributor

@simurai simurai left a comment

Choose a reason for hiding this comment

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

Updated the color on a bunch of more places!

Ohh.. that might be a few too many. The colors.primer.fg.disabled isn't meant for replacing all of colors.fg.muted and only in situations when a component has a disabled state. For example when adding the disabled attribute to a <button>.

When using colors.primer.fg.disabled for the "normal" state, for example on the BranchName component, then the text might be too subtle and hard to read:

Before After
Screen Shot 2021-10-15 at 16 21 02 Screen Shot 2021-10-15 at 16 21 17
colors.fg.muted colors.primer.fg.disabled

So I think we should revert 57b66e3 again and only additionally replace it for disabled Pagination and TextInput: #1512 (review)

@pksjce
Copy link
Collaborator Author

pksjce commented Oct 18, 2021

Thanks @simurai for that review! I have made the appropriate changes.

src/Button/ButtonTableList.tsx Outdated Show resolved Hide resolved
Co-authored-by: simurai <simurai@github.com>
Copy link
Contributor

@simurai simurai left a comment

Choose a reason for hiding this comment

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

👍 Ok, this looks good to me.

@pksjce pksjce requested a review from colebemis October 18, 2021 04:50
Copy link
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

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

🚢

@pksjce pksjce merged commit 1e5ac40 into main Oct 18, 2021
@pksjce pksjce deleted the pk/issue/1509 branch October 18, 2021 22:53
@primer-css primer-css mentioned this pull request Oct 18, 2021
@simurai simurai mentioned this pull request Oct 19, 2021
5 tasks
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