-
Notifications
You must be signed in to change notification settings - Fork 4
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
Color value component #34
Conversation
…ch-swiss/knora-ui-ng-lib into wip/10-color-value-component
projects/knora-ui/src/lib/viewer/values/color-value/color-value.component.ts
Outdated
Show resolved
Hide resolved
projects/knora-ui/src/lib/viewer/values/color-value/color-value.component.ts
Outdated
Show resolved
Hide resolved
Thanks, I will review this PR today! |
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.
The picker thingy looks great. I have made some comments regarding the internal structure.
projects/knora-ui/src/lib/viewer/values/color-value/color-picker/color-picker.component.ts
Outdated
Show resolved
Hide resolved
projects/knora-ui/src/lib/viewer/values/color-value/color-picker/color-picker.component.ts
Outdated
Show resolved
Hide resolved
projects/knora-ui/src/lib/viewer/values/color-value/color-value.component.ts
Outdated
Show resolved
Hide resolved
projects/knora-ui/src/lib/viewer/values/color-value/color-picker/color-picker.component.ts
Outdated
Show resolved
Hide resolved
… Refactor code accordingly.
projects/knora-ui/src/lib/viewer/values/color-value/color-picker/color-picker.component.ts
Show resolved
Hide resolved
projects/knora-ui/src/lib/viewer/values/color-value/color-picker/color-picker.component.ts
Outdated
Show resolved
Hide resolved
@flavens Does representing color as a string in the sub component solve your issue? |
projects/knora-ui/src/lib/viewer/values/color-value/color-value.component.spec.ts
Outdated
Show resolved
Hide resolved
projects/knora-ui/src/lib/viewer/values/color-value/color-value.component.spec.ts
Outdated
Show resolved
Hide resolved
projects/knora-ui/src/lib/viewer/values/color-value/color-picker/color-picker.component.ts
Outdated
Show resolved
Hide resolved
projects/knora-ui/src/lib/viewer/values/color-value/color-picker/color-picker.component.html
Outdated
Show resolved
Hide resolved
projects/knora-ui/src/lib/viewer/values/color-value/color-picker/color-picker.component.spec.ts
Outdated
Show resolved
Hide resolved
projects/knora-ui/src/lib/viewer/values/color-value/color-picker/color-picker.component.spec.ts
Show resolved
Hide resolved
I noticed the following when running
Is this version made for Angular 9? |
@@ -98,7 +99,7 @@ describe('ColorPickerComponent', () => { | |||
expect(testHostComponent.form.controls.colorValue.value).toEqual(''); | |||
}); | |||
|
|||
fit('should be disabled when the readonly input is set to true', () => { |
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.
Oh yes, that was the script searching for fit
:-)
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.
but it has been fixed in the last commit...
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 know :-) I was just happy that the script actually worked ;-)
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 good! Thanks a lot for this!
@tobiasschweizer should I merge it now or should we wait?!? |
I think it's good to go. What should we wait for? |
and do not forget to hit the checkbox in #4 :-) |
closes #10