Our current ergonomics are to define styles outside of the component markup (i.e., in styled and not inline). It seems like we’re moving to that even more with the *.style.ts pattern I saw in one of your PRs. I don’t think the Icon should have a color prop because it’s a departure from these ergonomics.
As such, I removed the color prop. I also removed the block prop for the same reason - it didn't seem to be used anywhere anyway.
📦 Published PR as canary version: 6.4.2-canary.315.c122c5e.0
:sparkles: Test out this PR locally via:
```bash
npm install @storybook/design-system@6.4.2-canary.315.c122c5e.0
# or
yarn add @storybook/design-system@6.4.2-canary.315.c122c5e.0
```
Fixes https://linear.app/chromaui/issue/CH-876/remove-color-prop-from-ds-icon
Description
Feedback from @domyen:
As such, I removed the
color
prop. I also removed theblock
prop for the same reason - it didn't seem to be used anywhere anyway.📦 Published PR as canary version:
6.4.2-canary.315.c122c5e.0
:sparkles: Test out this PR locally via: ```bash npm install @storybook/design-system@6.4.2-canary.315.c122c5e.0 # or yarn add @storybook/design-system@6.4.2-canary.315.c122c5e.0 ```