-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(progress-bar): use color mixin #9473
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
Conversation
src/lib/progress-bar/progress-bar.ts
Outdated
Input, | ||
ViewEncapsulation | ||
} from '@angular/core'; | ||
import {CanColor, mixinColor, ThemePalette} from '@angular/material/core'; |
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.
ThemePalette
seems to be unused
@@ -36,23 +48,23 @@ import {Component, ChangeDetectionStrategy, Input, ViewEncapsulation} from '@ang | |||
encapsulation: ViewEncapsulation.None, |
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.
You also have to add inputs: ['color']
to the metadata.
Done. |
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.
LGTM
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.
LGTM
@josephperrott why did you mark this as major? |
@jelbourn The types are changed for the |
Changing to patch since it loosens the type rather than restricting it. Passes for all Google apps |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The color attribute for the
progress-bar
now uses the color mixin as every other component that is themable.