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

feat(button): restyle negative variant #2498

Merged
merged 7 commits into from
Jun 7, 2023

Conversation

denkristoffer
Copy link
Collaborator

@denkristoffer denkristoffer commented Jun 5, 2023

Purpose of PR

Restyled the negative button variant to make it easier for users with deuteranomaly to differentiate it from the positive variant.

@changeset-bot
Copy link

changeset-bot bot commented Jun 5, 2023

🦋 Changeset detected

Latest commit: fab412f

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

This PR includes changesets to release 33 packages
Name Type
@contentful/f36-button Minor
@contentful/f36-forms Minor
@contentful/f36-icon Minor
@contentful/f36-tokens Patch
@contentful/f36-accordion Minor
@contentful/f36-asset Minor
@contentful/f36-autocomplete Minor
@contentful/f36-badge Minor
@contentful/f36-card Minor
@contentful/f36-collapse Minor
@contentful/f36-copybutton Minor
@contentful/f36-core Minor
@contentful/f36-datetime Minor
@contentful/f36-datepicker Minor
@contentful/f36-drag-handle Minor
@contentful/f36-entity-list Minor
@contentful/f36-empty-state Minor
@contentful/f36-list Minor
@contentful/f36-menu Minor
@contentful/f36-modal Minor
@contentful/f36-note Minor
@contentful/f36-notification Minor
@contentful/f36-pagination Minor
@contentful/f36-pill Minor
@contentful/f36-popover Minor
@contentful/f36-skeleton Minor
@contentful/f36-spinner Minor
@contentful/f36-table Minor
@contentful/f36-tabs Minor
@contentful/f36-text-link Minor
@contentful/f36-tooltip Minor
@contentful/f36-typography Minor
@contentful/f36-components Minor

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

@vercel
Copy link

vercel bot commented Jun 5, 2023

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

Name Status Preview Updated (UTC)
forma-36 ✅ Ready (Inspect) Visit Preview Jun 7, 2023 7:42am

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
CommonJS 143.27 KB (-0.02% 🔽) 2.9 s (-0.02% 🔽) 121 ms (+41.61% 🔺) 3 s
Module 139.79 KB (-0.01% 🔽) 2.8 s (-0.01% 🔽) 96 ms (+41.65% 🔺) 2.9 s

@denkristoffer denkristoffer marked this pull request as ready for review June 5, 2023 15:58
@denkristoffer denkristoffer requested review from a team and Lelith as code owners June 5, 2023 15:58
Copy link
Contributor

@bgutsol bgutsol left a comment

Choose a reason for hiding this comment

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

I think icons should also have red color, otherwise, they are no different to secondary

CleanShot 2023-06-06 at 09 24 39@2x

@denkristoffer denkristoffer force-pushed the CFCX-281-destructive-button-refresh branch from 42f5198 to 96f194e Compare June 6, 2023 08:47
@denkristoffer denkristoffer force-pushed the CFCX-281-destructive-button-refresh branch from 96f194e to 37ce457 Compare June 6, 2023 08:48
@denkristoffer
Copy link
Collaborator Author

@fabe I updated icon colours here, should I change the previous uses of colorNegative to match the red600 or keep it as red500?

@fabe
Copy link
Member

fabe commented Jun 6, 2023

@fabe I updated icon colours here, should I change the previous uses of colorNegative to match the red600 or keep it as red500?

Which previous uses? For the Button with startIcon?

@denkristoffer
Copy link
Collaborator Author

Which previous uses? For the Button with startIcon?

@fabe Basically the invalid border and message is no longer the same as the icon here: https://www.chromatic.com/test?appId=5fd1dda724cc620021ace8c5&id=647ef510af8e957bf9146bdd

@fabe
Copy link
Member

fabe commented Jun 6, 2023

Which previous uses? For the Button with startIcon?

@fabe Basically the invalid border and message is no longer the same as the icon here: https://www.chromatic.com/test?appId=5fd1dda724cc620021ace8c5&id=647ef510af8e957bf9146bdd

Yep, this is OK to change as well.

packages/website/lib/api.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,5 @@
---
"@contentful/f36-button": minor
Copy link
Contributor

Choose a reason for hiding this comment

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

should we include all the components where you've adjusted styles?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought we have to list packages as well, am I wrong?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it doesn't matter here since everything gets bumped anyway but I can add it.

@denkristoffer denkristoffer merged commit a0d27f0 into main Jun 7, 2023
@denkristoffer denkristoffer deleted the CFCX-281-destructive-button-refresh branch June 7, 2023 08:00
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