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

chore(button): size audit #10532

Merged
merged 10 commits into from
Feb 1, 2022

Conversation

sstrubberg
Copy link
Member

@sstrubberg sstrubberg commented Jan 26, 2022

REF 10295

  • Added FeatureFlag ternary for Button size prop based on guidance provided by design. REF
  • Removed the defaultProps object and used default params REF
  • Renamed ...other to ...rest for consistency with the rest of the codebase.
  • Updated the public snappy and other tests because i moved the defaultProps.

Testing

  • Make sure Button is behaving correctly in the v11 & v10 storybooks and that size props are accurately reflected according to the design guidance.
  • Ensure I haven't ruined someone's day from the tests I updated.

@sstrubberg sstrubberg requested review from a team as code owners January 26, 2022 15:30
@netlify
Copy link

netlify bot commented Jan 26, 2022

✔️ Deploy Preview for carbon-react-next ready!

🔨 Explore the source changes: ff85c37

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/61f977c584bd6e0008b74ab6

😎 Browse the preview: https://deploy-preview-10532--carbon-react-next.netlify.app

@netlify
Copy link

netlify bot commented Jan 26, 2022

✔️ Deploy Preview for carbon-components-react ready!
Built without sensitive environment variables

🔨 Explore the source changes: ff85c37

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/61f977c59e710b0008b21887

😎 Browse the preview: https://deploy-preview-10532--carbon-components-react.netlify.app/

@netlify
Copy link

netlify bot commented Jan 26, 2022

✔️ Deploy Preview for carbon-elements ready!

🔨 Explore the source changes: ff85c37

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/61f977c5f534600007d9fa01

😎 Browse the preview: https://deploy-preview-10532--carbon-elements.netlify.app

@jnm2377
Copy link
Contributor

jnm2377 commented Jan 27, 2022

Is the v11 icon button story supposed to be broken? It's missing the icon.

@sstrubberg sstrubberg requested a review from joshblack January 27, 2022 22:37
@sstrubberg
Copy link
Member Author

Is the v11 icon button story supposed to be broken? It's missing the icon.

Yeah, i noticed that before I even started working on this. Up to ya'll if we want to get this in and then deal with the icon button or get it bundled in this PR.

@sstrubberg
Copy link
Member Author

Is the v11 icon button story supposed to be broken? It's missing the icon.

Yeah, i noticed that before I even started working on this. Up to ya'll if we want to get this in and then deal with the icon button or get it bundled in this PR.

Cancel that. I think it's from when i merged something from main

@sstrubberg sstrubberg merged commit 2227e35 into carbon-design-system:main Feb 1, 2022
@jnm2377 jnm2377 mentioned this pull request Feb 10, 2022
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants