-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -208,14 +208,14 @@ $disabled-fade: 0.6; | |
| @include recolor-icon( | ||
| var(--p-icon-hovered), | ||
| transparent, | ||
| $filter-color: filter('action') | ||
| $filter-color: var(--p-action-primary) | ||
| ); | ||
| background: var(--p-background-hovered); | ||
|
|
||
| @media (-ms-high-contrast: active) { | ||
| @include recolor-icon( | ||
| $fill-color: var(--p-icon-on-interactive), | ||
| $filter-color: filter('white') | ||
| $filter-color: var(--p-icon-on-interactive) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 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 |
||
| ); | ||
| } | ||
| } | ||
|
|
@@ -380,13 +380,13 @@ $secondary-item-font-size: rem(15px); | |
| @media (-ms-high-contrast: active) { | ||
| @include recolor-icon( | ||
| $fill-color: var(--p-icon-on-interactive), | ||
| $filter-color: filter('white') | ||
| $filter-color: var(--p-icon-on-interactive) | ||
| ); | ||
| } | ||
| } | ||
|
|
||
| &:hover { | ||
| @include recolor-icon($filter-color: filter('action')); | ||
| @include recolor-icon($filter-color: var(--p-icon-on-interactive)); | ||
| } | ||
|
|
||
| &:focus { | ||
|
|
@@ -421,7 +421,7 @@ $secondary-item-font-size: rem(15px); | |
| @include recolor-icon( | ||
| var(--p-action-primary), | ||
| null, | ||
| $filter-color: filter('action') | ||
| $filter-color: var(--p-icon-on-interactive) | ||
| ); | ||
| color: var(--p-text-primary); | ||
| } | ||
|
|
||
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.