Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Use [the changelog guidelines](/documentation/Versioning%20and%20changelog.md) t

### Breaking changes

- Removed filter sass function and color-icon() mixin ([#4676](https://github.com/Shopify/polaris-react/pull/4676))
- Renamed `--p-duration-1-0-0` and `--p-duration-1-5-0` to `--p-duration-100` and `--p-duration-150`.

### Enhancements
Expand Down
1 change: 0 additions & 1 deletion src/styles/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

@import './foundation/utilities';
@import './foundation/colors';
@import './foundation/filters';
@import './foundation/spacing';
@import './foundation/border-width';
@import './foundation/borders';
Expand Down
1 change: 0 additions & 1 deletion src/styles/_public-api.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

@import './foundation/utilities';
@import './foundation/colors';
@import './foundation/filters';
@import './foundation/spacing';
@import './foundation/border-width';
@import './foundation/borders';
Expand Down
34 changes: 0 additions & 34 deletions src/styles/foundation/_filters.scss

This file was deleted.

10 changes: 0 additions & 10 deletions src/styles/shared/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,3 @@
filter: $filter-color;
}
}

@mixin color-icon($value, $hue: base) {
svg {
fill: color($value, $hue);
}

img {
filter: filter($value, $hue);
}
}
Comment on lines -20 to -28
Copy link
Contributor Author

@lgriffee lgriffee Nov 18, 2021

Choose a reason for hiding this comment

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

color-icon() isn't used anywhere else in polaris-react so I think we can remove this (since we'll also be removing color() as part of v8.0.0? Also a breaking change for web.