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

[IOAPPFD0-144] Add the new IconContained component #62

Merged
merged 11 commits into from
Sep 15, 2023

Conversation

dmnplb
Copy link
Collaborator

@dmnplb dmnplb commented Sep 11, 2023

Short description

This PR adds the new IconContained, a component designed to render an icon inside a circle. Inspired by Google Material Icon Button's various contained styles, the component takes two props besides icon: variant and color. The default and unique values, for now, are tonal (variant) and neutral (color).

Warning

IconContained is just a special wrapper for the Icon component. It's also not an interactive component, unlike the Google Material's IconButton. When adding new styles, you should be aware of this context and be careful not to add variants that look like interactive counterparts.

List of changes proposed in this pull request

  • Add the new IconContained component
  • [EXTRA] Add the new transactions icon

Preview

How to test

Go to the Icons (Foundation) in the example app.

@dmnplb dmnplb added the Assets label Sep 11, 2023
@dmnplb dmnplb marked this pull request as ready for review September 11, 2023 15:59
@dmnplb dmnplb requested review from a team as code owners September 11, 2023 15:59
@dmnplb dmnplb merged commit 7b5ea7e into main Sep 15, 2023
@dmnplb dmnplb deleted the IOAPPFD0-144-icon-contained branch September 15, 2023 08:31
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.

2 participants