-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat(colors): directive to use any color from any palette everywhere #7791
Conversation
4b3274a
to
c9ea280
Compare
restrict: 'A', | ||
link: function (scope, elem, attrs) { | ||
scope.$watch(attrs.mdColors, function (val) { | ||
Object.keys(val).forEach(function (key) { |
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 could spare calling Object.keys
and iterating it by using angular.forEach(val, function(value, key){ ... });
79a2490
to
dffb9e7
Compare
@gmoothart Is anything missing here that we could have used for tabs? |
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
1 similar comment
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
794bae9
to
ddeb37a
Compare
CLAs look good, thanks! |
1 similar comment
CLAs look good, thanks! |
ddeb37a
to
a681c7c
Compare
@EladBezalel - The demo needs some text to describe the demo, the intent, and the power of mdColors. |
Please refactor the |
@EladBezalel If we introduce this API, I can see developers wanting to use it in many places/components. Can you test the following components to make sure that it is compatible:
If it doesn't work out of the box, we may need to update some of the components to make this easier. |
@EladBezalel - see refactored |
toast and tooltip have elements containing the styles |
5526d74
to
87b6704
Compare
87b6704
to
54e6834
Compare
… on any element - directive and documentation - service and documentation - tests - smart watch option, when the directive recognize at least one of it's values needs interpolation it starts to watch it - mdColorsWatch - when set to false the directive doesn't watch for changes - $mdColorUtil - aggregate color related utils - fixed theming scoping issue - THEME was defined globally which made it leak and changed for other modules fixes #1269 Closes #7791
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
1 similar comment
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
|
||
// Text Colors on light and dakr backgrounds |
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.
Dark
54e6834
to
7350b5e
Compare
CLAs look good, thanks! |
1 similar comment
CLAs look good, thanks! |
… on any element - directive and documentation - service and documentation - tests - smart watch option, when the directive recognize at least one of it's values needs interpolation it starts to watch it - mdColorsWatch - when set to false the directive doesn't watch for changes - when using `background` property the directive will seamlessly set the foreground color according the palette hue - $mdColorUtil - aggregate color related utils - fixed theming scoping issue - THEME was defined globally which made it leak and changed for other modules fixes #1269
7350b5e
to
6aab69a
Compare
fixes #1269