Skip to content

Conversation

spaceninja
Copy link
Member

@spaceninja spaceninja commented Jul 14, 2022

Overview

This PR adds two new props to the Icon component: muted, which will
render the icon slightly opaque, and size which will scale the icon
to the requested icon size token.

Screenshots

Screen Shot 2022-07-14 at 1 33 20 PM

Testing

  1. Visit the Icon component page on the preview deploy.
  2. Review the Muted and Sizes stories.
  3. Review the "No Content" prototype, confirm it matches intent.

Known Issues

The muted prop sets the opacity of the icon, which can reveal when the icon is made of overlapping parts, such as on the search icon. @tylersticka approved this.

Screen Shot 2022-07-14 at 11 45 27 AM

This PR adds two new props to the Icon component: `muted`, which will
render the icon slightly opaque, and `size` which will scale the icon
to the requested icon size token.
@changeset-bot
Copy link

changeset-bot bot commented Jul 14, 2022

🦋 Changeset detected

Latest commit: dd41aca

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

This PR includes changesets to release 1 package
Name Type
@cloudfour/patterns 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

@netlify
Copy link

netlify bot commented Jul 14, 2022

Deploy Preview for cloudfour-patterns ready!

Name Link
🔨 Latest commit dd41aca
🔍 Latest deploy log https://app.netlify.com/sites/cloudfour-patterns/deploys/62d0a1772e6d810008c90532
😎 Deploy Preview https://deploy-preview-1951--cloudfour-patterns.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@spaceninja spaceninja mentioned this pull request Jul 14, 2022
@spaceninja spaceninja requested review from tylersticka and a team July 14, 2022 20:37
Copy link
Member

@gerardo-rodriguez gerardo-rodriguez left a comment

Choose a reason for hiding this comment

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

Pending a few small suggestions, I approve! 🎉

Copy link
Member

@tylersticka tylersticka left a comment

Choose a reason for hiding this comment

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

Works great, I agree with all of @gerardo-rodriguez's feedback (happy to defer approval to him)

Co-authored-by: Gerardo Rodriguez <gerardo@cloudfour.com>
@spaceninja spaceninja merged commit 3136eb2 into v-next Jul 14, 2022
@spaceninja spaceninja deleted the feature/icon-color-and-size branch July 14, 2022 23:11
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