-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remove filter functions #4650
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
Remove filter functions #4650
Conversation
| &:hover, | ||
| &:focus, | ||
| &:active { | ||
| @include recolor-icon( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this function used a bunch? I would assume it's a filter related function. If it is we could move it to this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should remove the filter() function and point this to v8.0.0-major branch. Looking great so far! We will have to add documentation for migration and a breaking change to the changelog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great for the first cut of removing the filter function references!
The files changed need a rebase/merge or something 👍
size-limit report
|
| @include recolor-icon( | ||
| $fill-color: var(--p-icon-on-interactive), | ||
| $filter-color: filter('white') | ||
| $filter-color: var(--p-icon-on-interactive) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These filter-color values passed to the 3rd argument of recolor-icon are sent as the filter property. They're not actual color values, they're filters like brightness(0) saturate(100%) invert(100%).
I think changing these to colors is going to break the behaviour, which is to allow for the recoloring of icons that are passed as svg datauris and rendered with an img tag
WHY are these changes introduced?
Related to #4528
Fixes
filter()part of #4592WHAT is this pull request doing?
Removing all instances of
filter()Sass function because the color system used by this function has been deprecated. Swapping out any references tofilter()with the color system custom css propertiesHow to 🎩
Most changes are in the
Navigationcomponent. Run Storybook and/or visit the Chromatic link to this branch to ensure there are no visual regressions.